ModernWpfPlayground/Dialogs/MessageBoxView.xaml

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="{Binding Title}"
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>