mirror of
https://github.com/holgerb83/ModernWpfPlayground.git
synced 2025-04-19 23:03:49 +02:00
28 lines
1.2 KiB
XML
28 lines
1.2 KiB
XML
<ui:ContentDialog
|
|
x:Class="Dialogs.MessageBoxView"
|
|
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:local="clr-namespace:Dialogs"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:mvvm="http://prismlibrary.com/"
|
|
xmlns:ui="http://schemas.modernwpf.com/2019"
|
|
Title="Save your work?"
|
|
d:DataContext="{d:DesignInstance local:MessageBoxViewModel}"
|
|
d:DesignHeight="450"
|
|
d:DesignWidth="800"
|
|
mvvm:ViewModelLocator.AutoWireViewModel="True"
|
|
CloseButtonText="Cancel"
|
|
DefaultButton="Primary"
|
|
PrimaryButtonCommand="{Binding CloseDialogCommand}"
|
|
PrimaryButtonCommandParameter="true"
|
|
PrimaryButtonText="Save"
|
|
SecondaryButtonText="Don't Save"
|
|
mc:Ignorable="d">
|
|
<StackPanel HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
|
<!-- Content body -->
|
|
<TextBlock Text="Lorem ipsum dolor sit amet, adipisicing elit." TextWrapping="Wrap" />
|
|
<CheckBox Content="Upload your content to the cloud." />
|
|
</StackPanel>
|
|
</ui:ContentDialog>
|