// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // // // This code was generated by a tool. DO NOT EDIT // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // #region StyleCop Suppression - generated code using System; using System.Collections; using System.ComponentModel; using System.Windows; using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows.Data; using System.Windows.Input; namespace Microsoft.Management.UI.Internal { /// /// This control presents a dropdown listbox with associated organizing actions that can be performed on it. /// /// /// /// /// If a custom template is provided for this control, then the template MUST provide the following template parts: /// /// PART_Picker - A required template part which must be of type PickerBase. This control provides basic functionality for Picker-like controls. /// /// [TemplatePart(Name="PART_Picker", Type=typeof(PickerBase))] [Localizability(LocalizationCategory.None)] partial class ListOrganizer { // // Fields // private PickerBase picker; // // ItemDeleted RoutedEvent // /// /// Identifies the ItemDeleted RoutedEvent. /// public static readonly RoutedEvent ItemDeletedEvent = EventManager.RegisterRoutedEvent("ItemDeleted",RoutingStrategy.Bubble,typeof(EventHandler>),typeof(ListOrganizer)); /// /// Occurs when an item is deleted from the list. /// public event EventHandler> ItemDeleted { add { AddHandler(ItemDeletedEvent,value); } remove { RemoveHandler(ItemDeletedEvent,value); } } // // ItemSelected RoutedEvent // /// /// Identifies the ItemSelected RoutedEvent. /// public static readonly RoutedEvent ItemSelectedEvent = EventManager.RegisterRoutedEvent("ItemSelected",RoutingStrategy.Bubble,typeof(EventHandler>),typeof(ListOrganizer)); /// /// Occurs when an item is selected in the list. /// public event EventHandler> ItemSelected { add { AddHandler(ItemSelectedEvent,value); } remove { RemoveHandler(ItemSelectedEvent,value); } } // // DeleteItem routed command // /// /// Informs the ListOrganizer that it should delete the item passed. /// public static readonly RoutedCommand DeleteItemCommand = new RoutedCommand("DeleteItem",typeof(ListOrganizer)); static private void DeleteItemCommand_CommandExecuted(object sender, ExecutedRoutedEventArgs e) { ListOrganizer obj = (ListOrganizer) sender; obj.OnDeleteItemExecuted( e ); } /// /// Called when DeleteItem executes. /// /// /// Informs the ListOrganizer that it should delete the item passed. /// protected virtual void OnDeleteItemExecuted(ExecutedRoutedEventArgs e) { OnDeleteItemExecutedImplementation(e); } partial void OnDeleteItemExecutedImplementation(ExecutedRoutedEventArgs e); // // SelectItem routed command // /// /// Informs the ListOrganizer that it should select the item passed. /// public static readonly RoutedCommand SelectItemCommand = new RoutedCommand("SelectItem",typeof(ListOrganizer)); static private void SelectItemCommand_CommandExecuted(object sender, ExecutedRoutedEventArgs e) { ListOrganizer obj = (ListOrganizer) sender; obj.OnSelectItemExecuted( e ); } /// /// Called when SelectItem executes. /// /// /// Informs the ListOrganizer that it should select the item passed. /// protected virtual void OnSelectItemExecuted(ExecutedRoutedEventArgs e) { OnSelectItemExecutedImplementation(e); } partial void OnSelectItemExecutedImplementation(ExecutedRoutedEventArgs e); // // DropDownButtonTemplate dependency property // /// /// Identifies the DropDownButtonTemplate dependency property. /// public static readonly DependencyProperty DropDownButtonTemplateProperty = DependencyProperty.Register( "DropDownButtonTemplate", typeof(ControlTemplate), typeof(ListOrganizer), new PropertyMetadata( null, DropDownButtonTemplateProperty_PropertyChanged) ); /// /// Gets or sets a value that controls the visual tree of the DropDown button. /// [Bindable(true)] [Category("Common Properties")] [Description("Gets or sets a value that controls the visual tree of the DropDown button.")] [Localizability(LocalizationCategory.None)] public ControlTemplate DropDownButtonTemplate { get { return (ControlTemplate) GetValue(DropDownButtonTemplateProperty); } set { SetValue(DropDownButtonTemplateProperty,value); } } static private void DropDownButtonTemplateProperty_PropertyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) { ListOrganizer obj = (ListOrganizer) o; obj.OnDropDownButtonTemplateChanged( new PropertyChangedEventArgs((ControlTemplate)e.OldValue, (ControlTemplate)e.NewValue) ); } /// /// Occurs when DropDownButtonTemplate property changes. /// public event EventHandler> DropDownButtonTemplateChanged; /// /// Called when DropDownButtonTemplate property changes. /// protected virtual void OnDropDownButtonTemplateChanged(PropertyChangedEventArgs e) { OnDropDownButtonTemplateChangedImplementation(e); RaisePropertyChangedEvent(DropDownButtonTemplateChanged, e); } partial void OnDropDownButtonTemplateChangedImplementation(PropertyChangedEventArgs e); // // DropDownStyle dependency property // /// /// Identifies the DropDownStyle dependency property. /// public static readonly DependencyProperty DropDownStyleProperty = DependencyProperty.Register( "DropDownStyle", typeof(Style), typeof(ListOrganizer), new PropertyMetadata( null, DropDownStyleProperty_PropertyChanged) ); /// /// Gets or sets the style of the drop-down. /// [Bindable(true)] [Category("Common Properties")] [Description("Gets or sets the style of the drop-down.")] [Localizability(LocalizationCategory.None)] public Style DropDownStyle { get { return (Style) GetValue(DropDownStyleProperty); } set { SetValue(DropDownStyleProperty,value); } } static private void DropDownStyleProperty_PropertyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) { ListOrganizer obj = (ListOrganizer) o; obj.OnDropDownStyleChanged( new PropertyChangedEventArgs