C# Class ModernWPF.Controls.LegacyBorderWindow

Old method of providing sizing glow border using a single window.
Inheritance: System.Windows.Window
显示文件 Open project: soukoku/ModernWPF Class Usage Examples

Public Properties

Property Type Description
ActiveBorderBrushProperty System.Windows.DependencyProperty
InactiveBorderBrushProperty System.Windows.DependencyProperty
IsContentActiveProperty System.Windows.DependencyProperty

Public Methods

Method Description
LegacyBorderWindow ( Window contentWindow ) : System
RepositionToContent ( IntPtr contentHwnd, bool hideOverride ) : void

Protected Methods

Method Description
OnClosed ( EventArgs e ) : void
OnRender ( System.Windows.Media.DrawingContext ctx ) : void
OnSourceInitialized ( EventArgs e ) : void

Private Methods

Method Description
ApplyWin32Stuff ( IntPtr hwnd ) : void
BindingTo ( string sourcePath, object source, DependencyProperty bindToProperty ) : void
CreateStops ( Color c ) : GradientStopCollection
GetShadowBrushes ( Color color ) : System.Windows.Media.Brush[]
HandleDPChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
HandleMinMaxInfo ( IntPtr lParam ) : void
HandleNcHitTest ( Point screenPoint ) : NcHitTest
LegacyBorderWindow ( ) : System
NcBorderHitTest ( System.Windows.Thickness frame, Point windowPoint ) : NcHitTest
ShowReal ( ) : void
ToggleVisible ( bool visible ) : void

Toggles the visibility of the border window while taking account into Windows animation settings.

TranslateToPixels ( System.Windows.Thickness wpfThickness ) : System.Windows.Thickness

Translate wpf units to actual pixels for high-dpi scaling.

TranslateToWpf ( CommonWin32.Rectangles.RECT r ) : Rect

translate screen pixels to wpf units for high-dpi scaling.

UpdateChromeBindings ( Chrome chrome ) : void
WndProc ( IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, bool &handled ) : IntPtr

Method Details

LegacyBorderWindow() public method

public LegacyBorderWindow ( Window contentWindow ) : System
contentWindow System.Windows.Window
return System

OnClosed() protected method

protected OnClosed ( EventArgs e ) : void
e System.EventArgs
return void

OnRender() protected method

protected OnRender ( System.Windows.Media.DrawingContext ctx ) : void
ctx System.Windows.Media.DrawingContext
return void

OnSourceInitialized() protected method

protected OnSourceInitialized ( EventArgs e ) : void
e System.EventArgs
return void

RepositionToContent() public method

public RepositionToContent ( IntPtr contentHwnd, bool hideOverride ) : void
contentHwnd System.IntPtr
hideOverride bool
return void

Property Details

ActiveBorderBrushProperty public_oe static_oe property

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

InactiveBorderBrushProperty public_oe static_oe property

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

IsContentActiveProperty public_oe static_oe property

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