C# Class Orchestra.Windows.FixMaximize

Attachable properties to fix the maximized state of a window. The code comes from http://connect.microsoft.com/VisualStudio/feedback/details/775972/wpf-ribbon-window-the-border-is-too-thin.
Inheritance: System.Windows.DependencyObject
Mostra file Open project: WildGums/Orchestra Class Usage Examples

Public Properties

Property Type Description
FixMaximizeProperty System.Windows.DependencyProperty

Public Methods

Method Description
GetFixMaximize ( Window ribbonWindow ) : bool
SetFixMaximize ( Window ribbonWindow, bool value ) : void

Private Methods

Method Description
FixMaximizeChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
FixMaximize_RibbonWindow_SourceInitialized ( object sender, EventArgs e ) : void
FixMaximize_RibbonWindow_WndProc ( IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, bool &handled ) : IntPtr
GetWindowRect ( IntPtr hwnd, RECT &lpRect ) : bool
GetWindowSize ( IntPtr hWnd ) : Size
SetWindowPos ( IntPtr hWnd, IntPtr hWndInsertAfter, int X, int Y, int cx, int cy, uint uFlags ) : bool

Method Details

GetFixMaximize() public static method

public static GetFixMaximize ( Window ribbonWindow ) : bool
ribbonWindow System.Windows.Window
return bool

SetFixMaximize() public static method

public static SetFixMaximize ( Window ribbonWindow, bool value ) : void
ribbonWindow System.Windows.Window
value bool
return void

Property Details

FixMaximizeProperty public_oe static_oe property

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