You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
4.7 KiB

<tool:BaseDialog x:Class="Gumming.AboutBoxView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:Gumming"
xmlns:tool="clr-namespace:GummingCommon;assembly=GummingCommon"
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
Background="{DynamicResource DefaultWindowBackground}"
Title="MainWindow" Width="600" Height="360" WindowStartupLocation="CenterScreen">
<Window.Resources>
<Style TargetType="{x:Type TextBlock}">
<Setter Property="Margin" Value="3"/>
<Setter Property="VerticalAlignment" Value="Top"/>
<Setter Property="HorizontalAlignment" Value="Left"/>
</Style>
<Style TargetType="{x:Type ListBox}">
<Setter Property="Background" Value="White"/>
<Setter Property="Margin" Value="2"/>
</Style>
</Window.Resources>
<Grid Background="Transparent">
<Border CornerRadius="3" BorderBrush="Transparent" BorderThickness="1" Background="Transparent">
<Border CornerRadius="1" BorderThickness="1" Background="Transparent" Height="Auto" BorderBrush="{DynamicResource DialogInnerBorder}">
<Grid Margin="10,10,10,10">
<Grid.RowDefinitions>
<RowDefinition Height="30"></RowDefinition>
<RowDefinition Height="10"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="30"></RowDefinition>
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" Text="{Binding ProductTitle}"></TextBlock>
<Button Command="{Binding CancelCommand}" Cursor="Hand" Margin="0,6,10,0" VerticalAlignment="Top" HorizontalAlignment="Right" Grid.Column="1" Style="{DynamicResource btnCloseStyle}" Width="16" Height="16" x:Name="btnWinClose" Focusable="False"></Button>
<Grid Grid.Row="1">
<Rectangle Fill="#E3E3E3" Margin="0,4,0,3"></Rectangle>
</Grid>
<Grid Grid.Row="2" Grid.Column ="1" Margin="5">
<Grid.RowDefinitions>
<RowDefinition Height="25"></RowDefinition>
<RowDefinition Height="25"></RowDefinition>
<RowDefinition Height="25"></RowDefinition>
<RowDefinition Height="25"></RowDefinition>
<RowDefinition Height="25"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Border Grid.RowSpan="6" Margin="0,0,3,3">
<Image Stretch="Fill" Source="/Gumming;component/Resource/AboutBox.png" ></Image>
</Border>
<TextBlock Grid.Row="0" Grid.Column ="1" Text="{Binding ProductName}"></TextBlock>
<TextBlock Grid.Row="1" Grid.Column ="1" Text="{Binding ProductVersion}"></TextBlock>
<TextBlock Grid.Row="2" Grid.Column ="1" Text="{Binding BuildDate}"></TextBlock>
<TextBlock Grid.Row="3" Grid.Column ="1" Text="{Binding CopyRight}" HorizontalAlignment="Center"></TextBlock>
<Border Grid.Row="5" Grid.Column ="1" BorderBrush="#DDD" BorderThickness="1" Margin="3">
<TextBlock Text="{Binding TextBoxDescription}" TextWrapping="Wrap"/>
</Border>
</Grid>
<Grid Grid.Column="1" Grid.Row="3">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="70"></ColumnDefinition>
<ColumnDefinition Width="70"></ColumnDefinition>
<ColumnDefinition Width="5"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Button Grid.Column="2" Margin="2" Style="{DynamicResource BigNoneButton}" Command="{Binding CancelCommand}" Content="确定"></Button>
</Grid>
</Grid>
</Border>
</Border>
</Grid>
</tool:BaseDialog>