Table of Contents

Class FluentWindow

Namespace
Wpf.Ui.Controls
Assembly
Wpf.Ui.dll

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

DependencyProperty

WindowBackdropTypeProperty

Identifies the WindowBackdropType dependency property.

public static readonly DependencyProperty WindowBackdropTypeProperty

Field Value

DependencyProperty

WindowCornerPreferenceProperty

Identifies the WindowCornerPreference dependency property.

public static readonly DependencyProperty WindowCornerPreferenceProperty

Field Value

DependencyProperty

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

bool

InteropHelper

Gets contains helper for accessing this window handle.

protected WindowInteropHelper InteropHelper { get; }

Property Value

WindowInteropHelper

WindowBackdropType

Gets or sets a value determining preferred backdrop type for current Window.

public WindowBackdropType WindowBackdropType { get; set; }

Property Value

WindowBackdropType

WindowCornerPreference

Gets or sets a value determining corner preference for current Window.

public WindowCornerPreference WindowCornerPreference { get; set; }

Property Value

WindowCornerPreference

Methods

OnBackdropTypeChanged(WindowBackdropType, WindowBackdropType)

This virtual method is called when WindowBackdropType is changed.

protected virtual void OnBackdropTypeChanged(WindowBackdropType oldValue, WindowBackdropType newValue)

Parameters

oldValue WindowBackdropType
newValue WindowBackdropType

OnCornerPreferenceChanged(WindowCornerPreference, WindowCornerPreference)

This virtual method is called when WindowCornerPreference is changed.

protected virtual void OnCornerPreferenceChanged(WindowCornerPreference oldValue, WindowCornerPreference newValue)

Parameters

oldValue WindowCornerPreference
newValue WindowCornerPreference

OnExtendsContentIntoTitleBarChanged(bool, bool)

This virtual method is called when ExtendsContentIntoTitleBar is changed.

protected virtual void OnExtendsContentIntoTitleBarChanged(bool oldValue, bool newValue)

Parameters

oldValue bool
newValue bool

OnSourceInitialized(EventArgs)

Raises the SourceInitialized event.

protected override void OnSourceInitialized(EventArgs e)

Parameters

e EventArgs

An EventArgs that contains the event data.