C# Class Yuhan.WPF.CustomWindow.StandardWindow

Inheritance: System.Windows.Window
Show file Open project: hansuky/Yuhan Class Usage Examples

Public Properties

Property Type Description
BackgroundProperty System.Windows.DependencyProperty
ContentProperty System.Windows.DependencyProperty

Protected Properties

Property Type Description
_closeButton WindowCloseButton
_closeButtonState WindowButtonState
_maximizeButton WindowMaximizeButton
_maximizeButtonState WindowButtonState
_minimizeButton WindowMinimizeButton
_minimizeButtonState WindowButtonState
_restoreButton WindowRestoreButton

Private Properties

Property Type Description
BackgroundChangedCallback void
ContentChangedCallback void
SetWindowState void
StandardWindow System

Protected Methods

Method Description
InitializeContentControls ( ) : void

Pre-defined controls of the window

OnButtonClose_Click ( object sender, RoutedEventArgs e ) : void
OnButtonMaximize_Click ( object sender, RoutedEventArgs e ) : void
OnButtonMinimize_Click ( object sender, RoutedEventArgs e ) : void
OnButtonRestore_Click ( object sender, RoutedEventArgs e ) : void
OnCaptionBarClick ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
OnLoaded ( object sender, RoutedEventArgs e ) : void
OnStandardWindowActivated ( object sender, EventArgs e ) : void
OnStandardWindowDeactivated ( object sender, EventArgs e ) : void
OnWindowButtonStateChange ( WindowButtonState state, WindowButton button ) : void
OnWindowDragMove ( object sender, System.Windows.Input.MouseEventArgs e ) : void
StandardWindow_StateChanged ( object sender, EventArgs e ) : void

Private Methods

Method Description
BackgroundChangedCallback ( DependencyObject property, System.Windows.DependencyPropertyChangedEventArgs args ) : void
ContentChangedCallback ( DependencyObject property, System.Windows.DependencyPropertyChangedEventArgs args ) : void
SetWindowState ( WindowState state ) : void
StandardWindow ( ) : System

Method Details

InitializeContentControls() protected method

Pre-defined controls of the window
protected InitializeContentControls ( ) : void
return void

OnButtonClose_Click() protected method

protected OnButtonClose_Click ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
return void

OnButtonMaximize_Click() protected method

protected OnButtonMaximize_Click ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
return void

OnButtonMinimize_Click() protected method

protected OnButtonMinimize_Click ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
return void

OnButtonRestore_Click() protected method

protected OnButtonRestore_Click ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
return void

OnCaptionBarClick() protected method

protected OnCaptionBarClick ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
sender object
e System.Windows.Input.MouseButtonEventArgs
return void

OnLoaded() protected method

protected OnLoaded ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
return void

OnStandardWindowActivated() protected method

protected OnStandardWindowActivated ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

OnStandardWindowDeactivated() protected method

protected OnStandardWindowDeactivated ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

OnWindowButtonStateChange() protected method

protected OnWindowButtonStateChange ( WindowButtonState state, WindowButton button ) : void
state WindowButtonState
button WindowButton
return void

OnWindowDragMove() protected method

protected OnWindowDragMove ( object sender, System.Windows.Input.MouseEventArgs e ) : void
sender object
e System.Windows.Input.MouseEventArgs
return void

StandardWindow_StateChanged() protected method

protected StandardWindow_StateChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Property Details

BackgroundProperty public static property

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

ContentProperty public static property

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

_closeButton protected property

protected WindowCloseButton,Yuhan.WPF.CustomWindow _closeButton
return WindowCloseButton

_closeButtonState protected property

protected WindowButtonState _closeButtonState
return WindowButtonState

_maximizeButton protected property

protected WindowMaximizeButton,Yuhan.WPF.CustomWindow _maximizeButton
return WindowMaximizeButton

_maximizeButtonState protected property

protected WindowButtonState _maximizeButtonState
return WindowButtonState

_minimizeButton protected property

protected WindowMinimizeButton,Yuhan.WPF.CustomWindow _minimizeButton
return WindowMinimizeButton

_minimizeButtonState protected property

protected WindowButtonState _minimizeButtonState
return WindowButtonState

_restoreButton protected property

protected WindowRestoreButton,Yuhan.WPF.CustomWindow _restoreButton
return WindowRestoreButton