Class FluentWindow
A custom WinUI Window with more convenience methods.
public class FluentWindow : Window, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild
- Inheritance
-
FluentWindow
- Implements
- Inherited Members
Constructors
FluentWindow()
Initializes a new instance of the FluentWindow class.
public FluentWindow()
Fields
ExtendsContentIntoTitleBarProperty
Identifies the ExtendsContentIntoTitleBar dependency property.
public static readonly DependencyProperty ExtendsContentIntoTitleBarProperty
Field Value
WindowBackdropTypeProperty
Identifies the WindowBackdropType dependency property.
public static readonly DependencyProperty WindowBackdropTypeProperty
Field Value
WindowCornerPreferenceProperty
Identifies the WindowCornerPreference dependency property.
public static readonly DependencyProperty WindowCornerPreferenceProperty
Field Value
Properties
ExtendsContentIntoTitleBar
Gets or sets a value indicating whether the default title bar of the window should be hidden to create space for app content.
public bool ExtendsContentIntoTitleBar { get; set; }
Property Value
InteropHelper
Gets contains helper for accessing this window handle.
protected WindowInteropHelper InteropHelper { get; }
Property Value
WindowBackdropType
Gets or sets a value determining preferred backdrop type for current Window.
public WindowBackdropType WindowBackdropType { get; set; }
Property Value
WindowCornerPreference
Gets or sets a value determining corner preference for current Window.
public WindowCornerPreference WindowCornerPreference { get; set; }
Property Value
Methods
OnBackdropTypeChanged(WindowBackdropType, WindowBackdropType)
This virtual method is called when WindowBackdropType is changed.
protected virtual void OnBackdropTypeChanged(WindowBackdropType oldValue, WindowBackdropType newValue)
Parameters
oldValue
WindowBackdropTypenewValue
WindowBackdropType
OnCornerPreferenceChanged(WindowCornerPreference, WindowCornerPreference)
This virtual method is called when WindowCornerPreference is changed.
protected virtual void OnCornerPreferenceChanged(WindowCornerPreference oldValue, WindowCornerPreference newValue)
Parameters
oldValue
WindowCornerPreferencenewValue
WindowCornerPreference
OnExtendsContentIntoTitleBarChanged(bool, bool)
This virtual method is called when ExtendsContentIntoTitleBar is changed.
protected virtual void OnExtendsContentIntoTitleBarChanged(bool oldValue, bool newValue)
Parameters
OnSourceInitialized(EventArgs)
Raises the SourceInitialized event.
protected override void OnSourceInitialized(EventArgs e)