ModernWpfPlayground/App/ContentDialogExample.xaml

22 lines
843 B
XML

<ui:ContentDialog
x:Class="ModernWpfPlayground.ContentDialogExample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ui="http://schemas.modernwpf.com/2019"
x:Name="LayoutRoot"
Title="Delete your work?"
CloseButtonText="Cancel"
DefaultButton="Close"
IsShadowEnabled="True"
PrimaryButtonText="Yes"
SecondaryButtonText="No">
<ui:SimpleStackPanel
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Spacing="10">
<!-- Content body -->
<TextBlock Text="Delete message?" />
<TextBlock TextWrapping="Wrap"><Run Text="&quot;" /><Run Text="{Binding Message, ElementName=LayoutRoot}" /><Run Text="&quot;" /></TextBlock>
</ui:SimpleStackPanel>
</ui:ContentDialog>