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