Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <UserControl x:Class="WpfDialogApp.Dialogs.YesNo.YesNoDialogView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:WpfDialogApp.Dialogs.YesNo"
- mc:Ignorable="d"
- Height="100" Width="300">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <TextBlock Text="{Binding Message}" Grid.Row="0" HorizontalAlignment="Center" FontSize="16" />
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <Button Content="Yes" Command="{Binding YesCommand}" Grid.Column="0" Margin="2"
- CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor,
- AncestorType=Window}}" />
- <Button Content="No" Command="{Binding NoCommand}" Grid.Column="1" Margin="2"
- CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor,
- AncestorType=Window}}" />
- </Grid>
- </Grid>
- </UserControl>
Add Comment
Please, Sign In to add comment