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.

71 lines
4.5 KiB

<tool:BaseDialog x:Class="Gumming.InputView"
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"
Background="{DynamicResource DefaultWindowBackground}"
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
Title="MainWindow" Width="500" Height="200" Icon="/Gumming;component/Resource/Logo.ico" 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="0" Background="Transparent">
<Border CornerRadius="1" BorderThickness="0" Background="Transparent" Height="Auto" BorderBrush="{DynamicResource DialogInnerBorder}">
<Grid Margin="10,10,10,10">
<Grid.RowDefinitions>
<RowDefinition Height="30"></RowDefinition>
<RowDefinition Height="30"></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}" x:Name="btnWinClose" Focusable="False">
<Button.Template >
<ControlTemplate TargetType="{x:Type Button}" >
<Border Grid.Column="1" Grid.Row="2" Width="20" Height="20" CornerRadius="12">
<Border.Background>
<ImageBrush ImageSource="/Gumming;component/Resource/Close.png" Stretch="Fill">
</ImageBrush>
</Border.Background>
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="UIElement.IsMouseOver" Value="True">
<Setter Property="Cursor" Value="Hand"></Setter>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Button.Template>
</Button>
<Grid Grid.Row="1" Grid.Column ="1" Margin="5">
<TextBlock Grid.Row="0" Grid.Column ="0" Text="{Binding InputTitle}"></TextBlock>
</Grid>
<Grid Grid.Row="2" Grid.Column ="1" Margin="5">
<TextBox Text="{Binding InputText}" TextWrapping="Wrap" local:TouchScreenKeyboard.TouchScreenKeyboard="true"></TextBox>
</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="1" Margin="2" Style="{DynamicResource CommonIconButton}" Command="{Binding SaveCommand}" Content="确定"></Button>
<Button Grid.Column="2" Margin="2" Style="{DynamicResource CommonIconButton}" Command="{Binding CancelCommand}" Content="取消"></Button>
</Grid>
</Grid>
</Border>
</Border>
</Grid>
</tool:BaseDialog>