C# Class MetroRadiance.Chrome.WindowChrome

ウィンドウにアタッチされ、四辺にカスタム UI を表示する機能を提供します。
Inheritance: System.Windows.DependencyObject
Show file Open project: Grabacr07/MetroRadiance Class Usage Examples

Public Properties

Property Type Description
BorderThicknessProperty System.Windows.DependencyProperty
CanResizeProperty System.Windows.DependencyProperty
InstanceProperty System.Windows.DependencyProperty
OverrideDefaultEdgeProperty System.Windows.DependencyProperty
SizingModeProperty System.Windows.DependencyProperty

Public Methods

Method Description
Attach ( IChromeOwner window ) : void

指定したウィンドウに、このクローム UI をアタッチします。

Attach ( Window window ) : void

指定した WPF Window に、このクローム UI をアタッチします。

Close ( ) : void
Detach ( ) : void
GetInstance ( Window window ) : WindowChrome
GetSizingMode ( FrameworkElement element ) : SizingMode
SetInstance ( Window window, WindowChrome value ) : void
SetSizingMode ( FrameworkElement element, SizingMode value ) : void
WindowChrome ( ) : System

Private Methods

Method Description
BorderThicknessPropertyCallback ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
CanResizePropertyCallback ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
InstanceChangedCallback ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OverrideDefaultEdgePropertyCallback ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
SizingElementButtonDownCallback ( object sender, System.Windows.Input.MouseButtonEventArgs args ) : void
SizingModeChangedCallback ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
UpdateThickness ( System.Windows.Thickness thickness ) : void

Method Details

Attach() public method

指定したウィンドウに、このクローム UI をアタッチします。
public Attach ( IChromeOwner window ) : void
window IChromeOwner
return void

Attach() public method

指定した WPF Window に、このクローム UI をアタッチします。
public Attach ( Window window ) : void
window System.Windows.Window
return void

Close() public method

public Close ( ) : void
return void

Detach() public method

public Detach ( ) : void
return void

GetInstance() public static method

public static GetInstance ( Window window ) : WindowChrome
window System.Windows.Window
return WindowChrome

GetSizingMode() public static method

public static GetSizingMode ( FrameworkElement element ) : SizingMode
element System.Windows.FrameworkElement
return SizingMode

SetInstance() public static method

public static SetInstance ( Window window, WindowChrome value ) : void
window System.Windows.Window
value WindowChrome
return void

SetSizingMode() public static method

public static SetSizingMode ( FrameworkElement element, SizingMode value ) : void
element System.Windows.FrameworkElement
value SizingMode
return void

WindowChrome() public method

public WindowChrome ( ) : System
return System

Property Details

BorderThicknessProperty public static property

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

CanResizeProperty public static property

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

InstanceProperty public static property

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

OverrideDefaultEdgeProperty public static property

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

SizingModeProperty public static property

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