OSDN Git Service

Initial commit of the WPF version
[buragesnap/BurageSnap.git] / BurageSnap / ConfirmView.xaml
1 <UserControl x:Class="BurageSnap.ConfirmView"
2         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4         xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
5         xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
6         xmlns:controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
7         xmlns:local="clr-namespace:BurageSnap"
8         xmlns:properties="clr-namespace:BurageSnap.Properties"
9         mc:Ignorable="d"
10         FocusManager.FocusedElement="{Binding ElementName=buttonNo}">
11     <UserControl.DataContext>
12         <local:ConfirmViewModel/>
13     </UserControl.DataContext>
14     <UserControl.Resources>
15         <ResourceDictionary>
16             <Style TargetType="Button" BasedOn="{StaticResource ButtonStyle}"/>
17         </ResourceDictionary>
18     </UserControl.Resources>
19     <Grid Height="75" Width="137" Margin="0,0,0,0" VerticalAlignment="Bottom">
20         <Button x:Name="buttonYes" Content="{x:Static properties:Resources.ConfirmView_Yes}" HorizontalAlignment="Left" Margin="8,29,0,0" VerticalAlignment="Top" Width="57" Height="38" Command="{Binding YesCommand}"/>
21         <Button x:Name="buttonNo" Content="{x:Static properties:Resources.ConfirmView_No}" HorizontalAlignment="Left" Margin="72,29,0,0" VerticalAlignment="Top" Width="57" Height="38"  Command="{Binding NoCommand}"/>
22         <Label x:Name="labelMessage" Content="{x:Static properties:Resources.ConfirmView_Message}" HorizontalAlignment="Center" Margin="5,0" VerticalAlignment="Top"/>
23     </Grid>
24 </UserControl>