C# Class MahApps.Metro.Controls.WindowCommands

Inheritance: System.Windows.Controls.ItemsControl
显示文件 Open project: OfficeDev/Office-IT-Pro-Deployment-Scripts Class Usage Examples

Public Properties

Property Type Description
DarkTemplateProperty System.Windows.DependencyProperty
LightTemplateProperty System.Windows.DependencyProperty
SeparatorHeightProperty System.Windows.DependencyProperty
ShowLastSeparatorProperty System.Windows.DependencyProperty
ShowSeparatorsProperty System.Windows.DependencyProperty
ThemeProperty System.Windows.DependencyProperty

Protected Methods

Method Description
ClearContainerForItemOverride ( DependencyObject element, object item ) : void
GetContainerForItemOverride ( ) : DependencyObject
IsItemItsOwnContainerOverride ( object item ) : bool
OnItemsChanged ( NotifyCollectionChangedEventArgs e ) : void
PrepareContainerForItemOverride ( DependencyObject element, object item ) : void
RaisePropertyChanged ( string propertyName = null ) : void

Private Methods

Method Description
AttachVisibilityHandler ( WindowCommandsItem container, UIElement item ) : void
DetachVisibilityHandler ( WindowCommandsItem container ) : void
GetWindowCommandsItem ( object item ) : WindowCommandsItem
GetWindowCommandsItems ( ) : IEnumerable
OnShowLastSeparatorChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnShowSeparatorsChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnThemeChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
ResetSeparators ( bool reset = true ) : void
VisibilityPropertyChanged ( object sender, EventArgs e ) : void
WindowCommands ( ) : System
WindowCommands_Loaded ( object sender, RoutedEventArgs e ) : void

Method Details

ClearContainerForItemOverride() protected method

protected ClearContainerForItemOverride ( DependencyObject element, object item ) : void
element System.Windows.DependencyObject
item object
return void

GetContainerForItemOverride() protected method

protected GetContainerForItemOverride ( ) : DependencyObject
return System.Windows.DependencyObject

IsItemItsOwnContainerOverride() protected method

protected IsItemItsOwnContainerOverride ( object item ) : bool
item object
return bool

OnItemsChanged() protected method

protected OnItemsChanged ( NotifyCollectionChangedEventArgs e ) : void
e NotifyCollectionChangedEventArgs
return void

PrepareContainerForItemOverride() protected method

protected PrepareContainerForItemOverride ( DependencyObject element, object item ) : void
element System.Windows.DependencyObject
item object
return void

RaisePropertyChanged() protected method

protected RaisePropertyChanged ( string propertyName = null ) : void
propertyName string
return void

Property Details

DarkTemplateProperty public_oe static_oe property

public static DependencyProperty,System.Windows DarkTemplateProperty
return System.Windows.DependencyProperty

LightTemplateProperty public_oe static_oe property

public static DependencyProperty,System.Windows LightTemplateProperty
return System.Windows.DependencyProperty

SeparatorHeightProperty public_oe static_oe property

public static DependencyProperty,System.Windows SeparatorHeightProperty
return System.Windows.DependencyProperty

ShowLastSeparatorProperty public_oe static_oe property

public static DependencyProperty,System.Windows ShowLastSeparatorProperty
return System.Windows.DependencyProperty

ShowSeparatorsProperty public_oe static_oe property

public static DependencyProperty,System.Windows ShowSeparatorsProperty
return System.Windows.DependencyProperty

ThemeProperty public_oe static_oe property

public static DependencyProperty,System.Windows ThemeProperty
return System.Windows.DependencyProperty