C# Class ModernWPF.Controls.LegacyBorderWindow

Old method of providing sizing glow border using a single window.
Inheritance: System.Windows.Window
Afficher le fichier Open project: soukoku/ModernWPF Class Usage Examples

Méthodes publiques

Свойство Type Description
ActiveBorderBrushProperty System.Windows.DependencyProperty
InactiveBorderBrushProperty System.Windows.DependencyProperty
IsContentActiveProperty System.Windows.DependencyProperty

Méthodes publiques

Méthode Description
LegacyBorderWindow ( Window contentWindow ) : System
RepositionToContent ( IntPtr contentHwnd, bool hideOverride ) : void

Méthodes protégées

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

Private Methods

Méthode 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 méthode

public LegacyBorderWindow ( Window contentWindow ) : System
contentWindow System.Windows.Window
Résultat System

OnClosed() protected méthode

protected OnClosed ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnRender() protected méthode

protected OnRender ( System.Windows.Media.DrawingContext ctx ) : void
ctx System.Windows.Media.DrawingContext
Résultat void

OnSourceInitialized() protected méthode

protected OnSourceInitialized ( EventArgs e ) : void
e System.EventArgs
Résultat void

RepositionToContent() public méthode

public RepositionToContent ( IntPtr contentHwnd, bool hideOverride ) : void
contentHwnd System.IntPtr
hideOverride bool
Résultat void

Property Details

ActiveBorderBrushProperty public_oe static_oe property

public static DependencyProperty,System.Windows ActiveBorderBrushProperty
Résultat System.Windows.DependencyProperty

InactiveBorderBrushProperty public_oe static_oe property

public static DependencyProperty,System.Windows InactiveBorderBrushProperty
Résultat System.Windows.DependencyProperty

IsContentActiveProperty public_oe static_oe property

public static DependencyProperty,System.Windows IsContentActiveProperty
Résultat System.Windows.DependencyProperty