|
@@ -9,6 +9,18 @@ |
|
|
<SolidColorBrush x:Key="ControlBorderBrush" Color="LightGray"/> |
|
|
<SolidColorBrush x:Key="ControlBorderBrush" Color="LightGray"/> |
|
|
<SolidColorBrush x:Key="ControlBackground" Color="White"/> |
|
|
<SolidColorBrush x:Key="ControlBackground" Color="White"/> |
|
|
<SolidColorBrush x:Key="ControlForeground" Color="Black"/> |
|
|
<SolidColorBrush x:Key="ControlForeground" Color="Black"/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<SolidColorBrush x:Key="foreground" Color="#a2c2e8" /> |
|
|
|
|
|
<SolidColorBrush x:Key="borderBrush" Color="#FF074B92" /> |
|
|
|
|
|
<SolidColorBrush x:Key="Titleforeground" Color="#FF07D7FF" /> |
|
|
|
|
|
<SolidColorBrush x:Key="DataGridColumnHeaderColor" Color="#00c2f4" /> |
|
|
|
|
|
<SolidColorBrush x:Key="LabelColor" Color="#FF00EEF3" /> |
|
|
|
|
|
<SolidColorBrush x:Key="MainTitleforeground" Color="#feffff" /> |
|
|
|
|
|
<SolidColorBrush x:Key="ButtonSelectForeground" Color="#4fade8" /> |
|
|
|
|
|
<SolidColorBrush x:Key="ButtonUnSelectForeground" Color="#3afdff" /> |
|
|
|
|
|
<SolidColorBrush x:Key="MeunSelectForeground" Color="#8f723c" /> |
|
|
|
|
|
<SolidColorBrush x:Key="MeunUnSelectForeground" Color="White" /> |
|
|
<LinearGradientBrush x:Key="NormalBackground" StartPoint="0.5,0" EndPoint="0.5,1"> |
|
|
<LinearGradientBrush x:Key="NormalBackground" StartPoint="0.5,0" EndPoint="0.5,1"> |
|
|
<GradientStopCollection> |
|
|
<GradientStopCollection> |
|
|
<GradientStop Color="White" /> |
|
|
<GradientStop Color="White" /> |
|
@@ -16,7 +28,9 @@ |
|
|
<GradientStop Color="#E3E3E3" Offset="1"/> |
|
|
<GradientStop Color="#E3E3E3" Offset="1"/> |
|
|
</GradientStopCollection> |
|
|
</GradientStopCollection> |
|
|
</LinearGradientBrush> |
|
|
</LinearGradientBrush> |
|
|
|
|
|
|
|
|
<con:HalfNumberConverter x:Key="HalfNumber"/> |
|
|
<con:HalfNumberConverter x:Key="HalfNumber"/> |
|
|
|
|
|
|
|
|
<FontFamily x:Key="Digital"> |
|
|
<FontFamily x:Key="Digital"> |
|
|
pack://application:,,,/Fonts/#DS-Digital |
|
|
pack://application:,,,/Fonts/#DS-Digital |
|
|
</FontFamily> |
|
|
</FontFamily> |
|
@@ -376,4 +390,249 @@ |
|
|
</Setter.Value> |
|
|
</Setter.Value> |
|
|
</Setter> |
|
|
</Setter> |
|
|
</Style> |
|
|
</Style> |
|
|
|
|
|
|
|
|
|
|
|
<Style x:Key="DesignTheDataGrid" TargetType="{x:Type ctrl:TheDataGrid}"> |
|
|
|
|
|
<Setter Property="AutoGenerateColumns" Value="False" /> |
|
|
|
|
|
<Setter Property="Background" Value="Transparent" /> |
|
|
|
|
|
<Setter Property="CanUserAddRows" Value="False" /> |
|
|
|
|
|
<Setter Property="CanUserDeleteRows" Value="False" /> |
|
|
|
|
|
<Setter Property="BorderThickness" Value="0" /> |
|
|
|
|
|
<Setter Property="HeadersVisibility" Value="Column" /> |
|
|
|
|
|
<Setter Property="GridLinesVisibility" Value="None" /> |
|
|
|
|
|
<Setter Property="SelectionMode" Value="Single" /> |
|
|
|
|
|
<!--<Setter Property="Template"> |
|
|
|
|
|
<Setter.Value> |
|
|
|
|
|
<ControlTemplate TargetType="ctrl:TheDataGrid"> |
|
|
|
|
|
<Border BorderBrush="{StaticResource ControlBorderBrush}" BorderThickness="1" Background="{StaticResource ControlBackground}"> |
|
|
|
|
|
<TextBlock Margin="4 0 0 0" Text="{TemplateBinding Text}" VerticalAlignment="Center" Foreground="BlueViolet"/> |
|
|
|
|
|
</Border> |
|
|
|
|
|
</ControlTemplate> |
|
|
|
|
|
</Setter.Value> |
|
|
|
|
|
</Setter>--> |
|
|
|
|
|
</Style> |
|
|
|
|
|
|
|
|
|
|
|
<Style TargetType="{x:Type DataGridRow}"> |
|
|
|
|
|
<Setter Property="Background" Value="Transparent" /> |
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" /> |
|
|
|
|
|
<Setter Property="SnapsToDevicePixels" Value="true" /> |
|
|
|
|
|
<Setter Property="Foreground" Value="#abf4ff" /> |
|
|
|
|
|
<Setter Property="BorderBrush" Value="#abf4ff" /> |
|
|
|
|
|
<Setter Property="FontSize" Value="10" /> |
|
|
|
|
|
<Setter Property="Template"> |
|
|
|
|
|
<Setter.Value> |
|
|
|
|
|
<ControlTemplate TargetType="{x:Type DataGridRow}"> |
|
|
|
|
|
<Border |
|
|
|
|
|
x:Name="DGR_Border" |
|
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}" |
|
|
|
|
|
SnapsToDevicePixels="True"> |
|
|
|
|
|
<SelectiveScrollingGrid x:Name="selectiveScrollingGrid"> |
|
|
|
|
|
<SelectiveScrollingGrid.ColumnDefinitions> |
|
|
|
|
|
<ColumnDefinition Width="Auto" /> |
|
|
|
|
|
<ColumnDefinition Width="*" /> |
|
|
|
|
|
</SelectiveScrollingGrid.ColumnDefinitions> |
|
|
|
|
|
<SelectiveScrollingGrid.RowDefinitions> |
|
|
|
|
|
<RowDefinition Height="*" /> |
|
|
|
|
|
<RowDefinition Height="Auto" /> |
|
|
|
|
|
</SelectiveScrollingGrid.RowDefinitions> |
|
|
|
|
|
<DataGridCellsPresenter |
|
|
|
|
|
Grid.Column="1" |
|
|
|
|
|
ItemsPanel="{TemplateBinding ItemsPanel}" |
|
|
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" /> |
|
|
|
|
|
<DataGridDetailsPresenter |
|
|
|
|
|
Grid.Row="1" |
|
|
|
|
|
Grid.Column="1" |
|
|
|
|
|
SelectiveScrollingGrid.SelectiveScrollingOrientation="{Binding AreRowDetailsFrozen, ConverterParameter={x:Static SelectiveScrollingOrientation.Vertical}, Converter={x:Static DataGrid.RowDetailsScrollingConverter}, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" |
|
|
|
|
|
Visibility="{TemplateBinding DetailsVisibility}" /> |
|
|
|
|
|
<DataGridRowHeader |
|
|
|
|
|
Grid.RowSpan="2" |
|
|
|
|
|
SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical" |
|
|
|
|
|
Visibility="{Binding HeadersVisibility, ConverterParameter={x:Static DataGridHeadersVisibility.Row}, Converter={x:Static DataGrid.HeadersVisibilityConverter}, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" /> |
|
|
|
|
|
</SelectiveScrollingGrid> |
|
|
|
|
|
<VisualStateManager.VisualStateGroups> |
|
|
|
|
|
<VisualStateGroup x:Name="CommonStates"> |
|
|
|
|
|
<VisualState x:Name="Normal" /> |
|
|
|
|
|
<VisualState x:Name="MouseOver"> |
|
|
|
|
|
<Storyboard> |
|
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="DGR_Border" Storyboard.TargetProperty="(Panel.Background)"> |
|
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0"> |
|
|
|
|
|
<DiscreteObjectKeyFrame.Value> |
|
|
|
|
|
<SolidColorBrush Color="#230077BC" /> |
|
|
|
|
|
</DiscreteObjectKeyFrame.Value> |
|
|
|
|
|
</DiscreteObjectKeyFrame> |
|
|
|
|
|
</ObjectAnimationUsingKeyFrames> |
|
|
|
|
|
</Storyboard> |
|
|
|
|
|
</VisualState> |
|
|
|
|
|
<VisualState x:Name="Normal_Selected"> |
|
|
|
|
|
<Storyboard> |
|
|
|
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="DGR_Border" Storyboard.TargetProperty="(Panel.Background)"> |
|
|
|
|
|
<DiscreteObjectKeyFrame KeyTime="0"> |
|
|
|
|
|
<DiscreteObjectKeyFrame.Value> |
|
|
|
|
|
<SolidColorBrush Color="#3D0077BC" /> |
|
|
|
|
|
</DiscreteObjectKeyFrame.Value> |
|
|
|
|
|
</DiscreteObjectKeyFrame> |
|
|
|
|
|
</ObjectAnimationUsingKeyFrames> |
|
|
|
|
|
</Storyboard> |
|
|
|
|
|
</VisualState> |
|
|
|
|
|
</VisualStateGroup> |
|
|
|
|
|
<VisualStateGroup x:Name="ValidationStates"> |
|
|
|
|
|
<VisualState x:Name="Valid" /> |
|
|
|
|
|
<VisualState x:Name="InvalidFocused" /> |
|
|
|
|
|
<VisualState x:Name="InvalidUnfocused" /> |
|
|
|
|
|
</VisualStateGroup> |
|
|
|
|
|
</VisualStateManager.VisualStateGroups> |
|
|
|
|
|
</Border> |
|
|
|
|
|
</ControlTemplate> |
|
|
|
|
|
</Setter.Value> |
|
|
|
|
|
</Setter> |
|
|
|
|
|
</Style> |
|
|
|
|
|
|
|
|
|
|
|
<Style TargetType="{x:Type GridSplitter}"> |
|
|
|
|
|
<Setter Property="Width" Value="1" /> |
|
|
|
|
|
<Setter Property="Background" Value="#175c86" /> |
|
|
|
|
|
<Setter Property="Cursor" Value="SizeWE" /> |
|
|
|
|
|
<Setter Property="Margin" Value="0,0,0,0" /> |
|
|
|
|
|
<Setter Property="Template"> |
|
|
|
|
|
<Setter.Value> |
|
|
|
|
|
<ControlTemplate TargetType="{x:Type Thumb}"> |
|
|
|
|
|
<Border |
|
|
|
|
|
Width="{TemplateBinding Width}" |
|
|
|
|
|
Margin="{TemplateBinding Margin}" |
|
|
|
|
|
Background="{TemplateBinding Background}" |
|
|
|
|
|
Opacity="0.4" /> |
|
|
|
|
|
</ControlTemplate> |
|
|
|
|
|
</Setter.Value> |
|
|
|
|
|
</Setter> |
|
|
|
|
|
</Style> |
|
|
|
|
|
|
|
|
|
|
|
<Style x:Key="ColumnHeaderGripperStyle" TargetType="{x:Type Thumb}"> |
|
|
|
|
|
<Setter Property="Width" Value="1" /> |
|
|
|
|
|
<Setter Property="Background" Value="#175c86" /> |
|
|
|
|
|
<Setter Property="Cursor" Value="SizeWE" /> |
|
|
|
|
|
<Setter Property="Margin" Value="0,0,0,0" /> |
|
|
|
|
|
<Setter Property="Template"> |
|
|
|
|
|
<Setter.Value> |
|
|
|
|
|
<ControlTemplate TargetType="{x:Type Thumb}"> |
|
|
|
|
|
<Border |
|
|
|
|
|
Width="{TemplateBinding Width}" |
|
|
|
|
|
Margin="{TemplateBinding Margin}" |
|
|
|
|
|
Background="{TemplateBinding Background}" |
|
|
|
|
|
Opacity="0.4" /> |
|
|
|
|
|
</ControlTemplate> |
|
|
|
|
|
</Setter.Value> |
|
|
|
|
|
</Setter> |
|
|
|
|
|
</Style> |
|
|
|
|
|
|
|
|
|
|
|
<Style TargetType="{x:Type DataGridColumnHeader}"> |
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" /> |
|
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center" /> |
|
|
|
|
|
<Setter Property="Height" Value="30" /> |
|
|
|
|
|
<Setter Property="Background"> |
|
|
|
|
|
<Setter.Value> |
|
|
|
|
|
<ImageBrush ImageSource="../Images/biogebj.png" Opacity="0.2" /> |
|
|
|
|
|
</Setter.Value> |
|
|
|
|
|
</Setter> |
|
|
|
|
|
<Setter Property="BorderThickness" Value="0" /> |
|
|
|
|
|
<Setter Property="Foreground" Value="{DynamicResource DataGridColumnHeaderColor}" /> |
|
|
|
|
|
<Setter Property="FontSize" Value="14" /> |
|
|
|
|
|
<Setter Property="Template"> |
|
|
|
|
|
<Setter.Value> |
|
|
|
|
|
<ControlTemplate TargetType="{x:Type DataGridColumnHeader}"> |
|
|
|
|
|
<Grid> |
|
|
|
|
|
<Border |
|
|
|
|
|
Padding="{TemplateBinding Padding}" |
|
|
|
|
|
Background="{TemplateBinding Background}" |
|
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}" |
|
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"> |
|
|
|
|
|
<ContentPresenter |
|
|
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" |
|
|
|
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}" |
|
|
|
|
|
RecognizesAccessKey="True" |
|
|
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" /> |
|
|
|
|
|
</Border> |
|
|
|
|
|
<GridSplitter |
|
|
|
|
|
HorizontalAlignment="Right" |
|
|
|
|
|
Background="#FF0BAE3F" |
|
|
|
|
|
BorderBrush="#FFBD2A2A" /> |
|
|
|
|
|
<Thumb |
|
|
|
|
|
x:Name="PART_RightHeaderGripper" |
|
|
|
|
|
Width="2" |
|
|
|
|
|
HorizontalAlignment="Right" |
|
|
|
|
|
Background="#FF1D9B9E" |
|
|
|
|
|
Style="{StaticResource ColumnHeaderGripperStyle}" /> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
</ControlTemplate> |
|
|
|
|
|
</Setter.Value> |
|
|
|
|
|
</Setter> |
|
|
|
|
|
</Style> |
|
|
|
|
|
|
|
|
|
|
|
<Style x:Key="DataGridColumnHeader" TargetType="{x:Type DataGridColumnHeader}"> |
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" /> |
|
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center" /> |
|
|
|
|
|
<Setter Property="Height" Value="30" /> |
|
|
|
|
|
<Setter Property="Background"> |
|
|
|
|
|
<Setter.Value> |
|
|
|
|
|
<ImageBrush ImageSource="../Images/databj.png" /> |
|
|
|
|
|
</Setter.Value> |
|
|
|
|
|
</Setter> |
|
|
|
|
|
<Setter Property="BorderThickness" Value="0" /> |
|
|
|
|
|
<Setter Property="Foreground" Value="White" /> |
|
|
|
|
|
<Setter Property="FontSize" Value="10" /> |
|
|
|
|
|
<Setter Property="Template"> |
|
|
|
|
|
<Setter.Value> |
|
|
|
|
|
<ControlTemplate TargetType="{x:Type DataGridColumnHeader}"> |
|
|
|
|
|
<Grid> |
|
|
|
|
|
<Border |
|
|
|
|
|
Padding="{TemplateBinding Padding}" |
|
|
|
|
|
Background="{TemplateBinding Background}" |
|
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}" |
|
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"> |
|
|
|
|
|
<ContentPresenter |
|
|
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" |
|
|
|
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}" |
|
|
|
|
|
RecognizesAccessKey="True" |
|
|
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" /> |
|
|
|
|
|
</Border> |
|
|
|
|
|
|
|
|
|
|
|
<Thumb |
|
|
|
|
|
x:Name="PART_RightHeaderGripper" |
|
|
|
|
|
HorizontalAlignment="Right" |
|
|
|
|
|
Style="{StaticResource ColumnHeaderGripperStyle}" /> |
|
|
|
|
|
</Grid> |
|
|
|
|
|
</ControlTemplate> |
|
|
|
|
|
</Setter.Value> |
|
|
|
|
|
</Setter> |
|
|
|
|
|
</Style> |
|
|
|
|
|
|
|
|
|
|
|
<Style TargetType="{x:Type DataGridCell}"> |
|
|
|
|
|
<Setter Property="Background" Value="Transparent" /> |
|
|
|
|
|
<Setter Property="BorderBrush" Value="#FF31879E" /> |
|
|
|
|
|
<Setter Property="BorderThickness" Value="0" /> |
|
|
|
|
|
<Setter Property="Template"> |
|
|
|
|
|
<Setter.Value> |
|
|
|
|
|
<ControlTemplate TargetType="{x:Type DataGridCell}"> |
|
|
|
|
|
<Border |
|
|
|
|
|
Background="{TemplateBinding Background}" |
|
|
|
|
|
BorderBrush="{TemplateBinding BorderBrush}" |
|
|
|
|
|
BorderThickness="{TemplateBinding BorderThickness}" |
|
|
|
|
|
SnapsToDevicePixels="True"> |
|
|
|
|
|
<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" /> |
|
|
|
|
|
</Border> |
|
|
|
|
|
</ControlTemplate> |
|
|
|
|
|
</Setter.Value> |
|
|
|
|
|
</Setter> |
|
|
|
|
|
<Style.Triggers> |
|
|
|
|
|
<Trigger Property="IsSelected" Value="True"> |
|
|
|
|
|
<!--<Setter Property="Background" Value="#FF2281EC"/>--> |
|
|
|
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.HighlightTextBrushKey}}" /> |
|
|
|
|
|
<!--<Setter Property="BorderBrush" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>--> |
|
|
|
|
|
</Trigger> |
|
|
|
|
|
<!--<Trigger Property="IsKeyboardFocusWithin" Value="True"> |
|
|
|
|
|
<Setter Property="BorderBrush" Value="{DynamicResource {x:Static DataGrid.FocusBorderBrushKey}}"/> |
|
|
|
|
|
</Trigger>--> |
|
|
|
|
|
<Trigger Property="IsEnabled" Value="false"> |
|
|
|
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" /> |
|
|
|
|
|
</Trigger> |
|
|
|
|
|
</Style.Triggers> |
|
|
|
|
|
</Style> |
|
|
|
|
|
|
|
|
</ResourceDictionary> |
|
|
</ResourceDictionary> |