C# Class AuraPhotoViewer.ResizeableWindow

This class exists to support proper windows maximizing while the WindowStyle = None needed to support custom chrome/shell. Windows can subclass this class to get the proper maximize beaviour incuding the task bar. This "native" code provides the correct windwo size to the OS taking into account the monitor and the taskbar size.
Inheritance: System.Windows.Window
Datei anzeigen Open project: ProRoman/Aura_PhotoViewer

Public Methods

Method Description
ResizeableWindow ( ) : System
SourceInitializedHandler ( object sender, EventArgs e ) : void

Private Methods

Method Description
GetMonitorInfo ( IntPtr hMonitor, MONITORINFO lpmi ) : bool
MonitorFromWindow ( IntPtr handle, int flags ) : IntPtr
WindowProc ( IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, bool &handled ) : IntPtr
WmGetMinMaxInfo ( IntPtr hwnd, IntPtr lParam ) : void

Method Details

ResizeableWindow() public method

public ResizeableWindow ( ) : System
return System

SourceInitializedHandler() public method

public SourceInitializedHandler ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void