AppWindow
Namespace: FluentAvalonia.UI.Windowing
C#
public class AppWindow : Window
Xaml
<wnd:AppWindow />
Required Template Parts
None :)
Pseudoclasses
:disabled, :focus, :focus-visible, :focus-within, :pointerover
Examples and Usage Notes
None yet.
API
Note: Inherited members are not shown
Properties
Events
Methods
Related Enums/Classes
IApplicationSplashScreen
| AppName | Specifies the name of the Application to display during the SplashScreen |
| AppIcon | Specifies the desired image to be shown during the SplashScreen |
| SplashScreenContent | Specifies custom content to be shown during the SplashScreen |
| MinimumShowTime | Specifies the minimum show time (in milliseconds) for the SplashScreen. |
| RunTasks(CancellationToken) | Called by AppWindow to run necessary background tasks during the splashscreen |
AppWindowTitleBar
| BackgroundColor | Gets or sets the background color of the title bar when the window is active |
| ForegroundColor | Gets or sets the foreground color of the title bar when the window is active |
| InactiveBackgroundColor | Gets or sets the background color of the title bar when the window is inactive |
| InactiveForegroundColor | Gets or sets the foreground color of the title bar when the window is inactive |
| ButtonBackgroundColor | Gets or sets the background color of the caption buttons when the window is active |
| ButtonForegroundColor | Gets or sets the foreground color of the caption buttons when the window is active |
| ButtonHoverBackgroundColor | Gets or sets the background color of the caption buttons when the window is active and the pointer is over the minimize or maximize button |
| ButtonHoverForegroundColor | Gets or sets the foreground color of the caption buttons when the window is active and the pointer is over the minimize or maximize button |
| ButtonPressedBackgroundColor | Gets or sets the background color of the caption buttons when the window is active and the pointer is pressed on the minimize or maximize button |
| ButtonPressedForegroundColor | Gets or sets the foreground color of the caption buttons when the window is active and the pointer is pressed on the minimize or maximize button |
| ButtonInactiveBackgroundColor | Gets or sets the background color of the caption buttons when the window is inactive |
| ButtonInactiveForegroundColor | Gets or sets the foreground color of the caption buttons when the window is inactive |
| ExtendsContentIntoTitleBar | Gets or sets whether the window content should display in the title bar area of the window |
| TitleBarHitTestType | Gets or sets how the hit test logic should handle hit testing controls that are placed in the title bar drag rect region |
| Height | Gets or sets the height of the default title bar |
| LeftInset | Gets or sets the system reserved region for caption buttons |
| RightInset | Gets or sets the system reserved region for caption buttons |
| SetDragRectangles(Rect[]) | Sets custom specified drag regions for the window. Setting this value overrides the default drag rect. Pass null to restore to the default. |
IAppWindowPlatformFeatures
| SetWindowBorderColor(Color) | Windows11 only, sets the border color of the current window to the specified color |
| SetTaskBarProgressBarState(TaskBarProgressBarState) | Activate the taskbar progressbar indicator with the given state |
| SetTaskBarProgressBarValue(UInt64, UInt64) | Activate the taskbar progressbar indicator with the given values |
TaskBarProgressBarState
| None | No TaskBarProgressBar is displayed |
| Normal | A green indicator is displayed in the taskbar button |
| Paused | A yellow progress indicator is displayed in the taskbar button. |
| Error | A red progress indicator is displayed in the taskbar button. |
| Indeterminate | A pulsing green indicator is displayed in the taskbar button. |