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.6 KiB

<local:BaseDialog x:Class="GummingCommon.DateRangeView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
xmlns:local="clr-namespace:GummingCommon"
Title="MainWindow" Height="220" Width="500" Icon="/MigrationLoader;component/Resource/FRS.ico" WindowStartupLocation="CenterScreen">
<Window.Background>
<LinearGradientBrush EndPoint="0.293,0.809" StartPoint="0.72,0.244">
<GradientStop Color="#FFEAEAEA" Offset="0.457"/>
<GradientStop Color="#FFEDEDED" Offset="0"/>
<GradientStop Color="#FFEFEFEF" Offset="1"/>
</LinearGradientBrush>
</Window.Background>
<Window.Resources>
<Style TargetType="{x:Type TextBlock}">
<Setter Property="Margin" Value="3"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="HorizontalAlignment" Value="Left"/>
</Style>
<Style TargetType="{x:Type DatePickerTextBox}">
<Setter Property="Background" Value="White"/>
<Setter Property="Margin" Value="2"/>
</Style>
</Window.Resources>
<Grid Background="Transparent">
<Border CornerRadius="3" BorderBrush="{DynamicResource DialogOuterBorder}" BorderThickness="1" Background="{DynamicResource ShadeBrush}">
<Border CornerRadius="1" BorderThickness="0" Background="{DynamicResource ShadeBrush}" Height="Auto" BorderBrush="{DynamicResource DialogInnerBorder}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="30"></RowDefinition>
<RowDefinition Height="10"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="30"></RowDefinition>
<RowDefinition Height="5"></RowDefinition>
</Grid.RowDefinitions>
<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>
<TextBlock Grid.Row="2" Margin="10,5,5,5" Text="{Binding HeaderTitle}" HorizontalAlignment="Left" FontSize="13"></TextBlock>
<Grid Grid.Row="3" Margin="10,0,10,0">
<Grid.RowDefinitions>
<RowDefinition Height="30"></RowDefinition>
<RowDefinition Height="30"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0">Start Date</TextBlock>
<DatePicker Grid.Column="1" SelectedDate="{Binding SelectStartTime}"></DatePicker>
<TextBlock Grid.Row="1" Grid.Column="0">End Date</TextBlock>
<DatePicker Grid.Row="1" Grid.Column="1" SelectedDate="{Binding SelectEndTime}"></DatePicker>
</Grid>
<Grid Grid.Row="4">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="70"></ColumnDefinition>
<ColumnDefinition Width="70"></ColumnDefinition>
<ColumnDefinition Width="3"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Button Grid.Column="1" Margin="2" Style="{DynamicResource CommonIconButton}" Tag="/MigrationLoader;component/Resource/save.png" Command="{Binding AddCommand}">Add</Button>
<Button Grid.Column="2" Margin="2" Style="{DynamicResource CommonNoneButton}" Command="{Binding CancelCommand}">Cancel</Button>
</Grid>
</Grid>
</Border>
</Border>
</Grid>
</local:BaseDialog>