-
Notifications
You must be signed in to change notification settings - Fork 7
ModalWindow
HO-COOH edited this page Mar 22, 2026
·
2 revisions
| Name | IsDependencyProperty | Description |
|---|---|---|
N/A |
❌ | No corresponding WinUI3Package IDL runtimeclass was found for this component. |
A WinUI3 modal window (meaning that it has an owner window, and take its focus) that you can directly use in xaml, just like the good-ol Window.
<essential:ModalWindow
x:Class="WinUI3Example.SampleModalWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:essential="using:WinUI3Package"
xmlns:local="using:WinUI3Example"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="Sample Modal Window"
mc:Ignorable="d">
<TextBlock Text="This is a ModalWindow" />
</essential:ModalWindow>