1 type derived from ChoiceEditor
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\AutomatedChoiceEditor.cs (1)
16
internal class AutomatedChoiceEditor :
ChoiceEditor
122 references to ChoiceEditor
System.Activities.Presentation (122)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\quickitemtemplateselector.cs (1)
54
if (element != null && typeof(
ChoiceEditor
).IsAssignableFrom(element.GetType()))
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\ChoiceEditor.cs (121)
41
public static readonly DependencyProperty ValueProperty = DependencyProperty.Register("Value", typeof(object), typeof(
ChoiceEditor
), new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, new PropertyChangedCallback(
ChoiceEditor
.ValueChanged), null, false, UpdateSourceTrigger.Explicit));
42
public static readonly DependencyProperty ValueIndexProperty = DependencyProperty.Register("ValueIndex", typeof(int), typeof(
ChoiceEditor
), new FrameworkPropertyMetadata(-1, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, new PropertyChangedCallback(
ChoiceEditor
.ValueIndexChanged)));
43
public static readonly DependencyProperty ItemsSourceProperty = DependencyProperty.Register("ItemsSource", typeof(IEnumerable), typeof(
ChoiceEditor
), new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.None, new PropertyChangedCallback(
ChoiceEditor
.ItemsSourceChanged)));
44
public static readonly DependencyProperty ConverterProperty = DependencyProperty.Register("Converter", typeof(TypeConverter), typeof(
ChoiceEditor
), new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.None));
46
public static readonly DependencyProperty ViewTypeProperty = DependencyProperty.Register("ViewType", typeof(ChoiceEditorViewType), typeof(
ChoiceEditor
), new FrameworkPropertyMetadata(ChoiceEditorViewType.Combo, FrameworkPropertyMetadataOptions.AffectsRender));
47
public static readonly DependencyProperty IsEditableProperty = DependencyProperty.Register("IsEditable", typeof(bool), typeof(
ChoiceEditor
), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.None, new PropertyChangedCallback(
ChoiceEditor
.IsEditableChanged)));
48
public static readonly DependencyProperty IconResourcePrefixProperty = DependencyProperty.Register("IconResourcePrefix", typeof(string), typeof(
ChoiceEditor
), new FrameworkPropertyMetadata(null));
49
public static readonly DependencyProperty IconResourceSuffixProperty = DependencyProperty.Register("IconResourceSuffix", typeof(string), typeof(
ChoiceEditor
), new FrameworkPropertyMetadata("Icon"));
50
public static readonly DependencyProperty IsNinchedProperty = DependencyProperty.Register("IsNinched", typeof(bool), typeof(
ChoiceEditor
), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.None, new PropertyChangedCallback(
ChoiceEditor
.IsNinchedChanged)));
51
public static readonly DependencyProperty ShowFullControlProperty = DependencyProperty.Register("ShowFullControl", typeof(bool), typeof(
ChoiceEditor
), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender, null, new CoerceValueCallback(
ChoiceEditor
.CoerceShowFullControl)));
52
public static readonly DependencyProperty ItemTemplateProperty = DependencyProperty.Register("ItemTemplate", typeof(DataTemplate), typeof(
ChoiceEditor
), new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.AffectsArrange | FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender, new PropertyChangedCallback(
ChoiceEditor
.ItemTemplateChanged)));
53
public static readonly DependencyProperty ItemTemplateSelectorProperty = DependencyProperty.Register("ItemTemplateSelector", typeof(DataTemplateSelector), typeof(
ChoiceEditor
), new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.AffectsArrange | FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender, new PropertyChangedCallback(
ChoiceEditor
.ItemTemplateSelectorChanged)));
54
public static readonly DependencyProperty UseItemTemplateForSelectionProperty = DependencyProperty.Register("UseItemTemplateForSelection", typeof(Nullable<bool>), typeof(
ChoiceEditor
), new FrameworkPropertyMetadata(null, null, new CoerceValueCallback(
ChoiceEditor
.CoerceUseItemTemplateForSelection)));
56
public static readonly DependencyProperty BorderCornerRadiusProperty = DependencyProperty.Register("BorderCornerRadius", typeof(double), typeof(
ChoiceEditor
), new FrameworkPropertyMetadata(0d, FrameworkPropertyMetadataOptions.AffectsRender));
57
public static readonly DependencyProperty DropButtonInsetProperty = DependencyProperty.Register("DropButtonInset", typeof(Thickness), typeof(
ChoiceEditor
), new FrameworkPropertyMetadata(new Thickness(), FrameworkPropertyMetadataOptions.AffectsRender));
58
public static readonly DependencyProperty TextAreaInsetProperty = DependencyProperty.Register("TextAreaInset", typeof(Thickness), typeof(
ChoiceEditor
), new FrameworkPropertyMetadata(new Thickness(), FrameworkPropertyMetadataOptions.AffectsRender));
59
public static readonly DependencyProperty DropButtonBrushProperty = DependencyProperty.Register("DropButtonBrush", typeof(Brush), typeof(
ChoiceEditor
), new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.AffectsRender));
60
public static readonly DependencyProperty InnerCornerRadiusProperty = DependencyProperty.Register("InnerCornerRadius", typeof(double), typeof(
ChoiceEditor
), new FrameworkPropertyMetadata(0d, FrameworkPropertyMetadataOptions.AffectsRender));
61
public static readonly DependencyProperty ButtonIconProperty = DependencyProperty.Register("ButtonIcon", typeof(ImageSource), typeof(
ChoiceEditor
), new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.AffectsRender));
62
public static readonly DependencyProperty IconWidthProperty = DependencyProperty.Register("IconWidth", typeof(double), typeof(
ChoiceEditor
), new FrameworkPropertyMetadata(0d, FrameworkPropertyMetadataOptions.AffectsRender));
63
public static readonly DependencyProperty IconHeightProperty = DependencyProperty.Register("IconHeight", typeof(double), typeof(
ChoiceEditor
), new FrameworkPropertyMetadata(0d, FrameworkPropertyMetadataOptions.AffectsRender));
65
public static readonly DependencyProperty BeginCommandProperty = DependencyProperty.Register("BeginCommand", typeof(ICommand), typeof(
ChoiceEditor
), new PropertyMetadata(null));
66
public static readonly DependencyProperty UpdateCommandProperty = DependencyProperty.Register("UpdateCommand", typeof(ICommand), typeof(
ChoiceEditor
), new PropertyMetadata(null));
67
public static readonly DependencyProperty CancelCommandProperty = DependencyProperty.Register("CancelCommand", typeof(ICommand), typeof(
ChoiceEditor
), new PropertyMetadata(null));
68
public static readonly DependencyProperty CommitCommandProperty = DependencyProperty.Register("CommitCommand", typeof(ICommand), typeof(
ChoiceEditor
), new PropertyMetadata(null));
69
public static readonly DependencyProperty FinishEditingCommandProperty = DependencyProperty.Register("FinishEditingCommand", typeof(ICommand), typeof(
ChoiceEditor
), new PropertyMetadata(null));
71
public static readonly DependencyProperty ComboBoxLoadingCursorProperty = DependencyProperty.Register("ComboBoxLoadingCursor", typeof(Cursor), typeof(
ChoiceEditor
), new PropertyMetadata(null));
74
public static readonly DependencyProperty ForceBindingProperty = DependencyProperty.Register("ForceBinding", typeof(bool), typeof(
ChoiceEditor
), new FrameworkPropertyMetadata(false));
113
this.CoerceValue(
ChoiceEditor
.UseItemTemplateForSelectionProperty);
122
get { return this.GetValue(
ChoiceEditor
.ValueProperty); }
123
set { this.SetValue(
ChoiceEditor
.ValueProperty, value); }
131
get { return (int)this.GetValue(
ChoiceEditor
.ValueIndexProperty); }
132
set { this.SetValue(
ChoiceEditor
.ValueIndexProperty, value); }
140
get { return (IEnumerable)this.GetValue(
ChoiceEditor
.ItemsSourceProperty); }
141
set { this.SetValue(
ChoiceEditor
.ItemsSourceProperty, value); }
149
get { return (TypeConverter)this.GetValue(
ChoiceEditor
.ConverterProperty); }
150
set { this.SetValue(
ChoiceEditor
.ConverterProperty, value); }
158
get { return (ChoiceEditorViewType)this.GetValue(
ChoiceEditor
.ViewTypeProperty); }
159
set { this.SetValue(
ChoiceEditor
.ViewTypeProperty, value); }
167
get { return (bool)this.GetValue(
ChoiceEditor
.IsEditableProperty); }
168
set { this.SetValue(
ChoiceEditor
.IsEditableProperty, value); }
176
get { return (string)this.GetValue(
ChoiceEditor
.IconResourcePrefixProperty); }
177
set { this.SetValue(
ChoiceEditor
.IconResourcePrefixProperty, value); }
185
get { return (string)this.GetValue(
ChoiceEditor
.IconResourceSuffixProperty); }
186
set { this.SetValue(
ChoiceEditor
.IconResourceSuffixProperty, value); }
194
get { return (bool)this.GetValue(
ChoiceEditor
.IsNinchedProperty); }
195
set { this.SetValue(
ChoiceEditor
.IsNinchedProperty, value); }
203
get { return (bool)this.GetValue(
ChoiceEditor
.ShowFullControlProperty); }
204
set { this.SetValue(
ChoiceEditor
.ShowFullControlProperty, value); }
209
get { return (DataTemplate)this.GetValue(
ChoiceEditor
.ItemTemplateProperty); }
210
set { this.SetValue(
ChoiceEditor
.ItemTemplateProperty, value); }
215
get { return (DataTemplateSelector)this.GetValue(
ChoiceEditor
.ItemTemplateSelectorProperty); }
216
set { this.SetValue(
ChoiceEditor
.ItemTemplateSelectorProperty, value); }
221
get { return (bool)this.GetValue(
ChoiceEditor
.UseItemTemplateForSelectionProperty); }
222
set { this.SetValue(
ChoiceEditor
.UseItemTemplateForSelectionProperty, value); }
227
get { return (double)this.GetValue(
ChoiceEditor
.BorderCornerRadiusProperty); }
228
set { this.SetValue(
ChoiceEditor
.BorderCornerRadiusProperty, value); }
233
get { return (Thickness)this.GetValue(
ChoiceEditor
.DropButtonInsetProperty); }
234
set { this.SetValue(
ChoiceEditor
.DropButtonInsetProperty, value); }
239
get { return (Thickness)this.GetValue(
ChoiceEditor
.TextAreaInsetProperty); }
240
set { this.SetValue(
ChoiceEditor
.TextAreaInsetProperty, value); }
245
get { return (Brush)this.GetValue(
ChoiceEditor
.DropButtonBrushProperty); }
246
set { this.SetValue(
ChoiceEditor
.DropButtonBrushProperty, value); }
251
get { return (double)this.GetValue(
ChoiceEditor
.InnerCornerRadiusProperty); }
252
set { this.SetValue(
ChoiceEditor
.InnerCornerRadiusProperty, value); }
257
get { return (ImageSource)this.GetValue(
ChoiceEditor
.ButtonIconProperty); }
258
set { this.SetValue(
ChoiceEditor
.ButtonIconProperty, value); }
263
get { return (double)this.GetValue(
ChoiceEditor
.IconWidthProperty); }
264
set { this.SetValue(
ChoiceEditor
.IconWidthProperty, value); }
269
get { return (double)this.GetValue(
ChoiceEditor
.IconHeightProperty); }
270
set { this.SetValue(
ChoiceEditor
.IconHeightProperty, value); }
278
get { return (ICommand)this.GetValue(
ChoiceEditor
.BeginCommandProperty); }
279
set { this.SetValue(
ChoiceEditor
.BeginCommandProperty, value); }
288
get { return (ICommand)this.GetValue(
ChoiceEditor
.UpdateCommandProperty); }
289
set { this.SetValue(
ChoiceEditor
.UpdateCommandProperty, value); }
297
get { return (ICommand)this.GetValue(
ChoiceEditor
.CancelCommandProperty); }
298
set { this.SetValue(
ChoiceEditor
.CancelCommandProperty, value); }
306
get { return (ICommand)this.GetValue(
ChoiceEditor
.CommitCommandProperty); }
307
set { this.SetValue(
ChoiceEditor
.CommitCommandProperty, value); }
317
get { return (ICommand)this.GetValue(
ChoiceEditor
.FinishEditingCommandProperty); }
318
set { this.SetValue(
ChoiceEditor
.FinishEditingCommandProperty, value); }
326
get { return (Cursor)this.GetValue(
ChoiceEditor
.ComboBoxLoadingCursorProperty); }
327
set { this.SetValue(
ChoiceEditor
.ComboBoxLoadingCursorProperty, value); }
356
get { return (bool)this.GetValue(
ChoiceEditor
.ForceBindingProperty); }
357
set { this.SetValue(
ChoiceEditor
.ForceBindingProperty, value); }
596
ChoiceEditor
choice = d as
ChoiceEditor
;
606
ChoiceEditor
choice = d as
ChoiceEditor
;
616
ChoiceEditor
choice = d as
ChoiceEditor
;
626
ChoiceEditor
choice = d as
ChoiceEditor
;
635
ChoiceEditor
choice = d as
ChoiceEditor
;
644
ChoiceEditor
choice = target as
ChoiceEditor
;
672
ChoiceEditor
choice = d as
ChoiceEditor
;
675
choice.CoerceValue(
ChoiceEditor
.UseItemTemplateForSelectionProperty);
681
ChoiceEditor
choice = d as
ChoiceEditor
;
684
choice.CoerceValue(
ChoiceEditor
.UseItemTemplateForSelectionProperty);
690
ChoiceEditor
choice = target as
ChoiceEditor
;
877
this.CoerceValue(
ChoiceEditor
.ShowFullControlProperty);
951
ValueEditorUtils.UpdateBinding(this,
ChoiceEditor
.ValueProperty, UpdateBindingType.Source);
952
ValueEditorUtils.UpdateBinding(this,
ChoiceEditor
.ValueIndexProperty, UpdateBindingType.Source);
954
ValueEditorUtils.UpdateBinding(this,
ChoiceEditor
.ValueProperty, UpdateBindingType.Target);
955
ValueEditorUtils.UpdateBinding(this,
ChoiceEditor
.ValueIndexProperty, UpdateBindingType.Target);
974
ValueEditorUtils.UpdateBinding(this,
ChoiceEditor
.ValueProperty, UpdateBindingType.Target);
975
ValueEditorUtils.UpdateBinding(this,
ChoiceEditor
.ValueIndexProperty, UpdateBindingType.Target);