Windows-powershell / PowerShell-master /src /Microsoft.Management.UI.Internal /ManagementList /ManagementList /ManagementList.Generated.cs
| // Copyright (c) Microsoft Corporation. | |
| // Licensed under the MIT License. | |
| using System; | |
| using System.ComponentModel; | |
| using System.Windows; | |
| using System.Windows.Automation.Peers; | |
| using System.Windows.Controls; | |
| using System.Windows.Input; | |
| namespace Microsoft.Management.UI.Internal | |
| { | |
| /// <summary> | |
| /// Interaction logic for ManagementList. | |
| /// </summary> | |
| [] | |
| [] | |
| [] | |
| partial class ManagementList | |
| { | |
| // | |
| // Fields | |
| // | |
| private ListOrganizer viewManager; | |
| private PickerBase viewSaver; | |
| // | |
| // ViewsChanged RoutedEvent | |
| // | |
| /// <summary> | |
| /// Identifies the ViewsChanged RoutedEvent. | |
| /// </summary> | |
| public static readonly RoutedEvent ViewsChangedEvent = EventManager.RegisterRoutedEvent("ViewsChanged",RoutingStrategy.Bubble,typeof(RoutedEventHandler),typeof(ManagementList)); | |
| /// <summary> | |
| /// Occurs when any of this instance's views change. | |
| /// </summary> | |
| public event RoutedEventHandler ViewsChanged | |
| { | |
| add | |
| { | |
| AddHandler(ViewsChangedEvent,value); | |
| } | |
| remove | |
| { | |
| RemoveHandler(ViewsChangedEvent,value); | |
| } | |
| } | |
| // | |
| // ClearFilter routed command | |
| // | |
| /// <summary> | |
| /// Informs the ManagementList that it should clear the filter that is applied. | |
| /// </summary> | |
| public static readonly RoutedCommand ClearFilterCommand = new RoutedCommand("ClearFilter",typeof(ManagementList)); | |
| static private void ClearFilterCommand_CommandCanExecute(object sender, CanExecuteRoutedEventArgs e) | |
| { | |
| ManagementList obj = (ManagementList) sender; | |
| obj.OnClearFilterCanExecute( e ); | |
| } | |
| static private void ClearFilterCommand_CommandExecuted(object sender, ExecutedRoutedEventArgs e) | |
| { | |
| ManagementList obj = (ManagementList) sender; | |
| obj.OnClearFilterExecuted( e ); | |
| } | |
| /// <summary> | |
| /// Called to determine if ClearFilter can execute. | |
| /// </summary> | |
| protected virtual void OnClearFilterCanExecute(CanExecuteRoutedEventArgs e) | |
| { | |
| OnClearFilterCanExecuteImplementation(e); | |
| } | |
| partial void OnClearFilterCanExecuteImplementation(CanExecuteRoutedEventArgs e); | |
| /// <summary> | |
| /// Called when ClearFilter executes. | |
| /// </summary> | |
| /// <remarks> | |
| /// Informs the ManagementList that it should clear the filter that is applied. | |
| /// </remarks> | |
| protected virtual void OnClearFilterExecuted(ExecutedRoutedEventArgs e) | |
| { | |
| OnClearFilterExecutedImplementation(e); | |
| } | |
| partial void OnClearFilterExecutedImplementation(ExecutedRoutedEventArgs e); | |
| // | |
| // SaveView routed command | |
| // | |
| /// <summary> | |
| /// Informs the PickerBase that it should close the dropdown. | |
| /// </summary> | |
| public static readonly RoutedCommand SaveViewCommand = new RoutedCommand("SaveView",typeof(ManagementList)); | |
| static private void SaveViewCommand_CommandCanExecute(object sender, CanExecuteRoutedEventArgs e) | |
| { | |
| ManagementList obj = (ManagementList) sender; | |
| obj.OnSaveViewCanExecute( e ); | |
| } | |
| static private void SaveViewCommand_CommandExecuted(object sender, ExecutedRoutedEventArgs e) | |
| { | |
| ManagementList obj = (ManagementList) sender; | |
| obj.OnSaveViewExecuted( e ); | |
| } | |
| /// <summary> | |
| /// Called to determine if SaveView can execute. | |
| /// </summary> | |
| protected virtual void OnSaveViewCanExecute(CanExecuteRoutedEventArgs e) | |
| { | |
| OnSaveViewCanExecuteImplementation(e); | |
| } | |
| partial void OnSaveViewCanExecuteImplementation(CanExecuteRoutedEventArgs e); | |
| /// <summary> | |
| /// Called when SaveView executes. | |
| /// </summary> | |
| /// <remarks> | |
| /// Informs the PickerBase that it should close the dropdown. | |
| /// </remarks> | |
| protected virtual void OnSaveViewExecuted(ExecutedRoutedEventArgs e) | |
| { | |
| OnSaveViewExecutedImplementation(e); | |
| } | |
| partial void OnSaveViewExecutedImplementation(ExecutedRoutedEventArgs e); | |
| // | |
| // StartFilter routed command | |
| // | |
| /// <summary> | |
| /// Informs the ManagementList that it should apply the filter. | |
| /// </summary> | |
| public static readonly RoutedCommand StartFilterCommand = new RoutedCommand("StartFilter",typeof(ManagementList)); | |
| static private void StartFilterCommand_CommandCanExecute(object sender, CanExecuteRoutedEventArgs e) | |
| { | |
| ManagementList obj = (ManagementList) sender; | |
| obj.OnStartFilterCanExecute( e ); | |
| } | |
| static private void StartFilterCommand_CommandExecuted(object sender, ExecutedRoutedEventArgs e) | |
| { | |
| ManagementList obj = (ManagementList) sender; | |
| obj.OnStartFilterExecuted( e ); | |
| } | |
| /// <summary> | |
| /// Called to determine if StartFilter can execute. | |
| /// </summary> | |
| protected virtual void OnStartFilterCanExecute(CanExecuteRoutedEventArgs e) | |
| { | |
| OnStartFilterCanExecuteImplementation(e); | |
| } | |
| partial void OnStartFilterCanExecuteImplementation(CanExecuteRoutedEventArgs e); | |
| /// <summary> | |
| /// Called when StartFilter executes. | |
| /// </summary> | |
| /// <remarks> | |
| /// Informs the ManagementList that it should apply the filter. | |
| /// </remarks> | |
| protected virtual void OnStartFilterExecuted(ExecutedRoutedEventArgs e) | |
| { | |
| OnStartFilterExecutedImplementation(e); | |
| } | |
| partial void OnStartFilterExecutedImplementation(ExecutedRoutedEventArgs e); | |
| // | |
| // StopFilter routed command | |
| // | |
| /// <summary> | |
| /// Informs the ManagementList that it should stop filtering that is in progress. | |
| /// </summary> | |
| public static readonly RoutedCommand StopFilterCommand = new RoutedCommand("StopFilter",typeof(ManagementList)); | |
| static private void StopFilterCommand_CommandCanExecute(object sender, CanExecuteRoutedEventArgs e) | |
| { | |
| ManagementList obj = (ManagementList) sender; | |
| obj.OnStopFilterCanExecute( e ); | |
| } | |
| static private void StopFilterCommand_CommandExecuted(object sender, ExecutedRoutedEventArgs e) | |
| { | |
| ManagementList obj = (ManagementList) sender; | |
| obj.OnStopFilterExecuted( e ); | |
| } | |
| /// <summary> | |
| /// Called to determine if StopFilter can execute. | |
| /// </summary> | |
| protected virtual void OnStopFilterCanExecute(CanExecuteRoutedEventArgs e) | |
| { | |
| OnStopFilterCanExecuteImplementation(e); | |
| } | |
| partial void OnStopFilterCanExecuteImplementation(CanExecuteRoutedEventArgs e); | |
| /// <summary> | |
| /// Called when StopFilter executes. | |
| /// </summary> | |
| /// <remarks> | |
| /// Informs the ManagementList that it should stop filtering that is in progress. | |
| /// </remarks> | |
| protected virtual void OnStopFilterExecuted(ExecutedRoutedEventArgs e) | |
| { | |
| OnStopFilterExecutedImplementation(e); | |
| } | |
| partial void OnStopFilterExecutedImplementation(ExecutedRoutedEventArgs e); | |
| // | |
| // AddFilterRulePicker dependency property | |
| // | |
| /// <summary> | |
| /// Identifies the AddFilterRulePicker dependency property key. | |
| /// </summary> | |
| private static readonly DependencyPropertyKey AddFilterRulePickerPropertyKey = DependencyProperty.RegisterReadOnly( "AddFilterRulePicker", typeof(AddFilterRulePicker), typeof(ManagementList), new PropertyMetadata( null, AddFilterRulePickerProperty_PropertyChanged) ); | |
| /// <summary> | |
| /// Identifies the AddFilterRulePicker dependency property. | |
| /// </summary> | |
| public static readonly DependencyProperty AddFilterRulePickerProperty = AddFilterRulePickerPropertyKey.DependencyProperty; | |
| /// <summary> | |
| /// Gets the filter rule picker. | |
| /// </summary> | |
| [] | |
| [] | |
| [] | |
| [] | |
| public AddFilterRulePicker AddFilterRulePicker | |
| { | |
| get | |
| { | |
| return (AddFilterRulePicker) GetValue(AddFilterRulePickerProperty); | |
| } | |
| private set | |
| { | |
| SetValue(AddFilterRulePickerPropertyKey,value); | |
| } | |
| } | |
| static private void AddFilterRulePickerProperty_PropertyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) | |
| { | |
| ManagementList obj = (ManagementList) o; | |
| obj.OnAddFilterRulePickerChanged( new PropertyChangedEventArgs<AddFilterRulePicker>((AddFilterRulePicker)e.OldValue, (AddFilterRulePicker)e.NewValue) ); | |
| } | |
| /// <summary> | |
| /// Occurs when AddFilterRulePicker property changes. | |
| /// </summary> | |
| public event EventHandler<PropertyChangedEventArgs<AddFilterRulePicker>> AddFilterRulePickerChanged; | |
| /// <summary> | |
| /// Called when AddFilterRulePicker property changes. | |
| /// </summary> | |
| protected virtual void OnAddFilterRulePickerChanged(PropertyChangedEventArgs<AddFilterRulePicker> e) | |
| { | |
| OnAddFilterRulePickerChangedImplementation(e); | |
| RaisePropertyChangedEvent(AddFilterRulePickerChanged, e); | |
| } | |
| partial void OnAddFilterRulePickerChangedImplementation(PropertyChangedEventArgs<AddFilterRulePicker> e); | |
| // | |
| // CurrentView dependency property | |
| // | |
| /// <summary> | |
| /// Identifies the CurrentView dependency property key. | |
| /// </summary> | |
| private static readonly DependencyPropertyKey CurrentViewPropertyKey = DependencyProperty.RegisterReadOnly( "CurrentView", typeof(StateDescriptor<ManagementList>), typeof(ManagementList), new PropertyMetadata( null, CurrentViewProperty_PropertyChanged) ); | |
| /// <summary> | |
| /// Identifies the CurrentView dependency property. | |
| /// </summary> | |
| public static readonly DependencyProperty CurrentViewProperty = CurrentViewPropertyKey.DependencyProperty; | |
| /// <summary> | |
| /// Gets or sets current view. | |
| /// </summary> | |
| [] | |
| [] | |
| [] | |
| [] | |
| public StateDescriptor<ManagementList> CurrentView | |
| { | |
| get | |
| { | |
| return (StateDescriptor<ManagementList>) GetValue(CurrentViewProperty); | |
| } | |
| private set | |
| { | |
| SetValue(CurrentViewPropertyKey,value); | |
| } | |
| } | |
| static private void CurrentViewProperty_PropertyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) | |
| { | |
| ManagementList obj = (ManagementList) o; | |
| obj.OnCurrentViewChanged( new PropertyChangedEventArgs<StateDescriptor<ManagementList>>((StateDescriptor<ManagementList>)e.OldValue, (StateDescriptor<ManagementList>)e.NewValue) ); | |
| } | |
| /// <summary> | |
| /// Occurs when CurrentView property changes. | |
| /// </summary> | |
| public event EventHandler<PropertyChangedEventArgs<StateDescriptor<ManagementList>>> CurrentViewChanged; | |
| /// <summary> | |
| /// Called when CurrentView property changes. | |
| /// </summary> | |
| protected virtual void OnCurrentViewChanged(PropertyChangedEventArgs<StateDescriptor<ManagementList>> e) | |
| { | |
| OnCurrentViewChangedImplementation(e); | |
| RaisePropertyChangedEvent(CurrentViewChanged, e); | |
| } | |
| partial void OnCurrentViewChangedImplementation(PropertyChangedEventArgs<StateDescriptor<ManagementList>> e); | |
| // | |
| // Evaluator dependency property | |
| // | |
| /// <summary> | |
| /// Identifies the Evaluator dependency property. | |
| /// </summary> | |
| public static readonly DependencyProperty EvaluatorProperty = DependencyProperty.Register( "Evaluator", typeof(ItemsControlFilterEvaluator), typeof(ManagementList), new PropertyMetadata( null, EvaluatorProperty_PropertyChanged) ); | |
| /// <summary> | |
| /// Gets or sets the FilterEvaluator. | |
| /// </summary> | |
| [] | |
| [] | |
| [] | |
| [] | |
| public ItemsControlFilterEvaluator Evaluator | |
| { | |
| get | |
| { | |
| return (ItemsControlFilterEvaluator) GetValue(EvaluatorProperty); | |
| } | |
| set | |
| { | |
| SetValue(EvaluatorProperty,value); | |
| } | |
| } | |
| static private void EvaluatorProperty_PropertyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) | |
| { | |
| ManagementList obj = (ManagementList) o; | |
| obj.OnEvaluatorChanged( new PropertyChangedEventArgs<ItemsControlFilterEvaluator>((ItemsControlFilterEvaluator)e.OldValue, (ItemsControlFilterEvaluator)e.NewValue) ); | |
| } | |
| /// <summary> | |
| /// Occurs when Evaluator property changes. | |
| /// </summary> | |
| public event EventHandler<PropertyChangedEventArgs<ItemsControlFilterEvaluator>> EvaluatorChanged; | |
| /// <summary> | |
| /// Called when Evaluator property changes. | |
| /// </summary> | |
| protected virtual void OnEvaluatorChanged(PropertyChangedEventArgs<ItemsControlFilterEvaluator> e) | |
| { | |
| OnEvaluatorChangedImplementation(e); | |
| RaisePropertyChangedEvent(EvaluatorChanged, e); | |
| } | |
| partial void OnEvaluatorChangedImplementation(PropertyChangedEventArgs<ItemsControlFilterEvaluator> e); | |
| // | |
| // FilterRulePanel dependency property | |
| // | |
| /// <summary> | |
| /// Identifies the FilterRulePanel dependency property key. | |
| /// </summary> | |
| private static readonly DependencyPropertyKey FilterRulePanelPropertyKey = DependencyProperty.RegisterReadOnly( "FilterRulePanel", typeof(FilterRulePanel), typeof(ManagementList), new PropertyMetadata( null, FilterRulePanelProperty_PropertyChanged) ); | |
| /// <summary> | |
| /// Identifies the FilterRulePanel dependency property. | |
| /// </summary> | |
| public static readonly DependencyProperty FilterRulePanelProperty = FilterRulePanelPropertyKey.DependencyProperty; | |
| /// <summary> | |
| /// Gets the filter rule panel. | |
| /// </summary> | |
| [] | |
| [] | |
| [] | |
| [] | |
| public FilterRulePanel FilterRulePanel | |
| { | |
| get | |
| { | |
| return (FilterRulePanel) GetValue(FilterRulePanelProperty); | |
| } | |
| private set | |
| { | |
| SetValue(FilterRulePanelPropertyKey,value); | |
| } | |
| } | |
| static private void FilterRulePanelProperty_PropertyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) | |
| { | |
| ManagementList obj = (ManagementList) o; | |
| obj.OnFilterRulePanelChanged( new PropertyChangedEventArgs<FilterRulePanel>((FilterRulePanel)e.OldValue, (FilterRulePanel)e.NewValue) ); | |
| } | |
| /// <summary> | |
| /// Occurs when FilterRulePanel property changes. | |
| /// </summary> | |
| public event EventHandler<PropertyChangedEventArgs<FilterRulePanel>> FilterRulePanelChanged; | |
| /// <summary> | |
| /// Called when FilterRulePanel property changes. | |
| /// </summary> | |
| protected virtual void OnFilterRulePanelChanged(PropertyChangedEventArgs<FilterRulePanel> e) | |
| { | |
| OnFilterRulePanelChangedImplementation(e); | |
| RaisePropertyChangedEvent(FilterRulePanelChanged, e); | |
| } | |
| partial void OnFilterRulePanelChangedImplementation(PropertyChangedEventArgs<FilterRulePanel> e); | |
| // | |
| // IsFilterShown dependency property | |
| // | |
| /// <summary> | |
| /// Identifies the IsFilterShown dependency property. | |
| /// </summary> | |
| public static readonly DependencyProperty IsFilterShownProperty = DependencyProperty.Register( "IsFilterShown", typeof(bool), typeof(ManagementList), new PropertyMetadata( BooleanBoxes.TrueBox, IsFilterShownProperty_PropertyChanged) ); | |
| /// <summary> | |
| /// Gets or sets a value indicating whether the filter is shown. | |
| /// </summary> | |
| [] | |
| [] | |
| [] | |
| [] | |
| public bool IsFilterShown | |
| { | |
| get | |
| { | |
| return (bool) GetValue(IsFilterShownProperty); | |
| } | |
| set | |
| { | |
| SetValue(IsFilterShownProperty,BooleanBoxes.Box(value)); | |
| } | |
| } | |
| static private void IsFilterShownProperty_PropertyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) | |
| { | |
| ManagementList obj = (ManagementList) o; | |
| obj.OnIsFilterShownChanged( new PropertyChangedEventArgs<bool>((bool)e.OldValue, (bool)e.NewValue) ); | |
| } | |
| /// <summary> | |
| /// Occurs when IsFilterShown property changes. | |
| /// </summary> | |
| public event EventHandler<PropertyChangedEventArgs<bool>> IsFilterShownChanged; | |
| /// <summary> | |
| /// Called when IsFilterShown property changes. | |
| /// </summary> | |
| protected virtual void OnIsFilterShownChanged(PropertyChangedEventArgs<bool> e) | |
| { | |
| OnIsFilterShownChangedImplementation(e); | |
| RaisePropertyChangedEvent(IsFilterShownChanged, e); | |
| } | |
| partial void OnIsFilterShownChangedImplementation(PropertyChangedEventArgs<bool> e); | |
| // | |
| // IsLoadingItems dependency property | |
| // | |
| /// <summary> | |
| /// Identifies the IsLoadingItems dependency property. | |
| /// </summary> | |
| public static readonly DependencyProperty IsLoadingItemsProperty = DependencyProperty.Register( "IsLoadingItems", typeof(bool), typeof(ManagementList), new PropertyMetadata( BooleanBoxes.FalseBox, IsLoadingItemsProperty_PropertyChanged) ); | |
| /// <summary> | |
| /// Gets or sets a value indicating whether items are loading. | |
| /// </summary> | |
| [] | |
| [] | |
| [] | |
| [] | |
| public bool IsLoadingItems | |
| { | |
| get | |
| { | |
| return (bool) GetValue(IsLoadingItemsProperty); | |
| } | |
| set | |
| { | |
| SetValue(IsLoadingItemsProperty,BooleanBoxes.Box(value)); | |
| } | |
| } | |
| static private void IsLoadingItemsProperty_PropertyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) | |
| { | |
| ManagementList obj = (ManagementList) o; | |
| obj.OnIsLoadingItemsChanged( new PropertyChangedEventArgs<bool>((bool)e.OldValue, (bool)e.NewValue) ); | |
| } | |
| /// <summary> | |
| /// Occurs when IsLoadingItems property changes. | |
| /// </summary> | |
| public event EventHandler<PropertyChangedEventArgs<bool>> IsLoadingItemsChanged; | |
| /// <summary> | |
| /// Called when IsLoadingItems property changes. | |
| /// </summary> | |
| protected virtual void OnIsLoadingItemsChanged(PropertyChangedEventArgs<bool> e) | |
| { | |
| OnIsLoadingItemsChangedImplementation(e); | |
| RaisePropertyChangedEvent(IsLoadingItemsChanged, e); | |
| } | |
| partial void OnIsLoadingItemsChangedImplementation(PropertyChangedEventArgs<bool> e); | |
| // | |
| // IsSearchShown dependency property | |
| // | |
| /// <summary> | |
| /// Identifies the IsSearchShown dependency property. | |
| /// </summary> | |
| public static readonly DependencyProperty IsSearchShownProperty = DependencyProperty.Register( "IsSearchShown", typeof(bool), typeof(ManagementList), new PropertyMetadata( BooleanBoxes.TrueBox, IsSearchShownProperty_PropertyChanged) ); | |
| /// <summary> | |
| /// Gets or sets a value indicating whether the search box is shown. | |
| /// </summary> | |
| [] | |
| [] | |
| [] | |
| [] | |
| public bool IsSearchShown | |
| { | |
| get | |
| { | |
| return (bool) GetValue(IsSearchShownProperty); | |
| } | |
| set | |
| { | |
| SetValue(IsSearchShownProperty,BooleanBoxes.Box(value)); | |
| } | |
| } | |
| static private void IsSearchShownProperty_PropertyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) | |
| { | |
| ManagementList obj = (ManagementList) o; | |
| obj.OnIsSearchShownChanged( new PropertyChangedEventArgs<bool>((bool)e.OldValue, (bool)e.NewValue) ); | |
| } | |
| /// <summary> | |
| /// Occurs when IsSearchShown property changes. | |
| /// </summary> | |
| public event EventHandler<PropertyChangedEventArgs<bool>> IsSearchShownChanged; | |
| /// <summary> | |
| /// Called when IsSearchShown property changes. | |
| /// </summary> | |
| protected virtual void OnIsSearchShownChanged(PropertyChangedEventArgs<bool> e) | |
| { | |
| OnIsSearchShownChangedImplementation(e); | |
| RaisePropertyChangedEvent(IsSearchShownChanged, e); | |
| } | |
| partial void OnIsSearchShownChangedImplementation(PropertyChangedEventArgs<bool> e); | |
| // | |
| // List dependency property | |
| // | |
| /// <summary> | |
| /// Identifies the List dependency property key. | |
| /// </summary> | |
| private static readonly DependencyPropertyKey ListPropertyKey = DependencyProperty.RegisterReadOnly( "List", typeof(InnerList), typeof(ManagementList), new PropertyMetadata( null, ListProperty_PropertyChanged) ); | |
| /// <summary> | |
| /// Identifies the List dependency property. | |
| /// </summary> | |
| public static readonly DependencyProperty ListProperty = ListPropertyKey.DependencyProperty; | |
| /// <summary> | |
| /// Gets the list. | |
| /// </summary> | |
| [] | |
| [] | |
| [] | |
| [] | |
| public InnerList List | |
| { | |
| get | |
| { | |
| return (InnerList) GetValue(ListProperty); | |
| } | |
| private set | |
| { | |
| SetValue(ListPropertyKey,value); | |
| } | |
| } | |
| static private void ListProperty_PropertyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) | |
| { | |
| ManagementList obj = (ManagementList) o; | |
| obj.OnListChanged( new PropertyChangedEventArgs<InnerList>((InnerList)e.OldValue, (InnerList)e.NewValue) ); | |
| } | |
| /// <summary> | |
| /// Occurs when List property changes. | |
| /// </summary> | |
| public event EventHandler<PropertyChangedEventArgs<InnerList>> ListChanged; | |
| /// <summary> | |
| /// Called when List property changes. | |
| /// </summary> | |
| protected virtual void OnListChanged(PropertyChangedEventArgs<InnerList> e) | |
| { | |
| OnListChangedImplementation(e); | |
| RaisePropertyChangedEvent(ListChanged, e); | |
| } | |
| partial void OnListChangedImplementation(PropertyChangedEventArgs<InnerList> e); | |
| // | |
| // SearchBox dependency property | |
| // | |
| /// <summary> | |
| /// Identifies the SearchBox dependency property key. | |
| /// </summary> | |
| private static readonly DependencyPropertyKey SearchBoxPropertyKey = DependencyProperty.RegisterReadOnly( "SearchBox", typeof(SearchBox), typeof(ManagementList), new PropertyMetadata( null, SearchBoxProperty_PropertyChanged) ); | |
| /// <summary> | |
| /// Identifies the SearchBox dependency property. | |
| /// </summary> | |
| public static readonly DependencyProperty SearchBoxProperty = SearchBoxPropertyKey.DependencyProperty; | |
| /// <summary> | |
| /// Gets the search box. | |
| /// </summary> | |
| [] | |
| [] | |
| [] | |
| [] | |
| public SearchBox SearchBox | |
| { | |
| get | |
| { | |
| return (SearchBox) GetValue(SearchBoxProperty); | |
| } | |
| private set | |
| { | |
| SetValue(SearchBoxPropertyKey,value); | |
| } | |
| } | |
| static private void SearchBoxProperty_PropertyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) | |
| { | |
| ManagementList obj = (ManagementList) o; | |
| obj.OnSearchBoxChanged( new PropertyChangedEventArgs<SearchBox>((SearchBox)e.OldValue, (SearchBox)e.NewValue) ); | |
| } | |
| /// <summary> | |
| /// Occurs when SearchBox property changes. | |
| /// </summary> | |
| public event EventHandler<PropertyChangedEventArgs<SearchBox>> SearchBoxChanged; | |
| /// <summary> | |
| /// Called when SearchBox property changes. | |
| /// </summary> | |
| protected virtual void OnSearchBoxChanged(PropertyChangedEventArgs<SearchBox> e) | |
| { | |
| OnSearchBoxChangedImplementation(e); | |
| RaisePropertyChangedEvent(SearchBoxChanged, e); | |
| } | |
| partial void OnSearchBoxChangedImplementation(PropertyChangedEventArgs<SearchBox> e); | |
| // | |
| // ViewManagerUserActionState dependency property | |
| // | |
| /// <summary> | |
| /// Identifies the ViewManagerUserActionState dependency property. | |
| /// </summary> | |
| public static readonly DependencyProperty ViewManagerUserActionStateProperty = DependencyProperty.Register( "ViewManagerUserActionState", typeof(UserActionState), typeof(ManagementList), new PropertyMetadata( UserActionState.Enabled, ViewManagerUserActionStateProperty_PropertyChanged) ); | |
| /// <summary> | |
| /// Gets or sets the user interaction state of the view manager. | |
| /// </summary> | |
| [] | |
| [] | |
| [] | |
| [] | |
| public UserActionState ViewManagerUserActionState | |
| { | |
| get | |
| { | |
| return (UserActionState) GetValue(ViewManagerUserActionStateProperty); | |
| } | |
| set | |
| { | |
| SetValue(ViewManagerUserActionStateProperty,value); | |
| } | |
| } | |
| static private void ViewManagerUserActionStateProperty_PropertyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) | |
| { | |
| ManagementList obj = (ManagementList) o; | |
| obj.OnViewManagerUserActionStateChanged( new PropertyChangedEventArgs<UserActionState>((UserActionState)e.OldValue, (UserActionState)e.NewValue) ); | |
| } | |
| /// <summary> | |
| /// Occurs when ViewManagerUserActionState property changes. | |
| /// </summary> | |
| public event EventHandler<PropertyChangedEventArgs<UserActionState>> ViewManagerUserActionStateChanged; | |
| /// <summary> | |
| /// Called when ViewManagerUserActionState property changes. | |
| /// </summary> | |
| protected virtual void OnViewManagerUserActionStateChanged(PropertyChangedEventArgs<UserActionState> e) | |
| { | |
| OnViewManagerUserActionStateChangedImplementation(e); | |
| RaisePropertyChangedEvent(ViewManagerUserActionStateChanged, e); | |
| } | |
| partial void OnViewManagerUserActionStateChangedImplementation(PropertyChangedEventArgs<UserActionState> e); | |
| // | |
| // ViewSaverUserActionState dependency property | |
| // | |
| /// <summary> | |
| /// Identifies the ViewSaverUserActionState dependency property. | |
| /// </summary> | |
| public static readonly DependencyProperty ViewSaverUserActionStateProperty = DependencyProperty.Register( "ViewSaverUserActionState", typeof(UserActionState), typeof(ManagementList), new PropertyMetadata( UserActionState.Enabled, ViewSaverUserActionStateProperty_PropertyChanged) ); | |
| /// <summary> | |
| /// Gets or sets the user interaction state of the view saver. | |
| /// </summary> | |
| [] | |
| [] | |
| [] | |
| [] | |
| public UserActionState ViewSaverUserActionState | |
| { | |
| get | |
| { | |
| return (UserActionState) GetValue(ViewSaverUserActionStateProperty); | |
| } | |
| set | |
| { | |
| SetValue(ViewSaverUserActionStateProperty,value); | |
| } | |
| } | |
| static private void ViewSaverUserActionStateProperty_PropertyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) | |
| { | |
| ManagementList obj = (ManagementList) o; | |
| obj.OnViewSaverUserActionStateChanged( new PropertyChangedEventArgs<UserActionState>((UserActionState)e.OldValue, (UserActionState)e.NewValue) ); | |
| } | |
| /// <summary> | |
| /// Occurs when ViewSaverUserActionState property changes. | |
| /// </summary> | |
| public event EventHandler<PropertyChangedEventArgs<UserActionState>> ViewSaverUserActionStateChanged; | |
| /// <summary> | |
| /// Called when ViewSaverUserActionState property changes. | |
| /// </summary> | |
| protected virtual void OnViewSaverUserActionStateChanged(PropertyChangedEventArgs<UserActionState> e) | |
| { | |
| OnViewSaverUserActionStateChangedImplementation(e); | |
| RaisePropertyChangedEvent(ViewSaverUserActionStateChanged, e); | |
| } | |
| partial void OnViewSaverUserActionStateChangedImplementation(PropertyChangedEventArgs<UserActionState> e); | |
| /// <summary> | |
| /// Called when a property changes. | |
| /// </summary> | |
| private void RaisePropertyChangedEvent<T>(EventHandler<PropertyChangedEventArgs<T>> eh, PropertyChangedEventArgs<T> e) | |
| { | |
| if (eh != null) | |
| { | |
| eh(this,e); | |
| } | |
| } | |
| // | |
| // OnApplyTemplate | |
| // | |
| /// <summary> | |
| /// Called when ApplyTemplate is called. | |
| /// </summary> | |
| public override void OnApplyTemplate() | |
| { | |
| PreOnApplyTemplate(); | |
| base.OnApplyTemplate(); | |
| this.viewManager = WpfHelp.GetTemplateChild<ListOrganizer>(this,"PART_ViewManager"); | |
| this.viewSaver = WpfHelp.GetTemplateChild<PickerBase>(this,"PART_ViewSaver"); | |
| PostOnApplyTemplate(); | |
| } | |
| partial void PreOnApplyTemplate(); | |
| partial void PostOnApplyTemplate(); | |
| // | |
| // Static constructor | |
| // | |
| /// <summary> | |
| /// Called when the type is initialized. | |
| /// </summary> | |
| static ManagementList() | |
| { | |
| DefaultStyleKeyProperty.OverrideMetadata(typeof(ManagementList), new FrameworkPropertyMetadata(typeof(ManagementList))); | |
| CommandManager.RegisterClassCommandBinding( typeof(ManagementList), new CommandBinding( ManagementList.ClearFilterCommand, ClearFilterCommand_CommandExecuted, ClearFilterCommand_CommandCanExecute )); | |
| CommandManager.RegisterClassCommandBinding( typeof(ManagementList), new CommandBinding( ManagementList.SaveViewCommand, SaveViewCommand_CommandExecuted, SaveViewCommand_CommandCanExecute )); | |
| CommandManager.RegisterClassCommandBinding( typeof(ManagementList), new CommandBinding( ManagementList.StartFilterCommand, StartFilterCommand_CommandExecuted, StartFilterCommand_CommandCanExecute )); | |
| CommandManager.RegisterClassCommandBinding( typeof(ManagementList), new CommandBinding( ManagementList.StopFilterCommand, StopFilterCommand_CommandExecuted, StopFilterCommand_CommandCanExecute )); | |
| StaticConstructorImplementation(); | |
| } | |
| static partial void StaticConstructorImplementation(); | |
| // | |
| // CreateAutomationPeer | |
| // | |
| /// <summary> | |
| /// Create an instance of the AutomationPeer. | |
| /// </summary> | |
| /// <returns> | |
| /// An instance of the AutomationPeer. | |
| /// </returns> | |
| protected override System.Windows.Automation.Peers.AutomationPeer OnCreateAutomationPeer() | |
| { | |
| return new ExtendedFrameworkElementAutomationPeer(this,AutomationControlType.Pane); | |
| } | |
| } | |
| } | |