Commit 5778ea87 by liulongfei

样式调整

parent e80b8a39
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid" xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm" xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm"
xmlns:fcore="clr-namespace:VIZ.Framework.Core;assembly=VIZ.Framework.Core" xmlns:fcore="clr-namespace:VIZ.Framework.Core;assembly=VIZ.Framework.Core"
xmlns:dxdo="http://schemas.devexpress.com/winfx/2008/xaml/docking"
xmlns:fcommon="clr-namespace:VIZ.Framework.Common;assembly=VIZ.Framework.Common" xmlns:fcommon="clr-namespace:VIZ.Framework.Common;assembly=VIZ.Framework.Common"
xmlns:common="clr-namespace:VIZ.Package.Common;assembly=VIZ.Package.Common" xmlns:common="clr-namespace:VIZ.Package.Common;assembly=VIZ.Package.Common"
xmlns:storage="clr-namespace:VIZ.Package.Storage;assembly=VIZ.Package.Storage" xmlns:storage="clr-namespace:VIZ.Package.Storage;assembly=VIZ.Package.Storage"
...@@ -407,8 +408,17 @@ ...@@ -407,8 +408,17 @@
<Style TargetType="{x:Type dxg:RowControl}"> <Style TargetType="{x:Type dxg:RowControl}">
<Style.Triggers> <Style.Triggers>
<DataTrigger Binding="{Binding Row.IsOpen}" Value="True"> <DataTrigger Binding="{Binding Row.IsOpen}" Value="True">
<Setter Property="Background" Value="#FF0078D7"></Setter> <Setter Property="Background" Value="#AA0078D7"></Setter>
</DataTrigger> </DataTrigger>
<MultiDataTrigger>
<MultiDataTrigger.Conditions>
<Condition Binding="{Binding Row.IsOpen}" Value="True"></Condition>
<Condition Binding="{Binding IsActive,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type dxdo:LayoutPanel}}}" Value="True"></Condition>
</MultiDataTrigger.Conditions>
<MultiDataTrigger.Setters>
<Setter Property="Background" Value="#FF0078D7"></Setter>
</MultiDataTrigger.Setters>
</MultiDataTrigger>
</Style.Triggers> </Style.Triggers>
</Style> </Style>
</dxg:GridControl.Resources> </dxg:GridControl.Resources>
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors" xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars" xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid" xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
xmlns:dxdo="http://schemas.devexpress.com/winfx/2008/xaml/docking"
xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm" xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm"
xmlns:fcore="clr-namespace:VIZ.Framework.Core;assembly=VIZ.Framework.Core" xmlns:fcore="clr-namespace:VIZ.Framework.Core;assembly=VIZ.Framework.Core"
xmlns:fcommon="clr-namespace:VIZ.Framework.Common;assembly=VIZ.Framework.Common" xmlns:fcommon="clr-namespace:VIZ.Framework.Common;assembly=VIZ.Framework.Common"
...@@ -127,8 +128,17 @@ ...@@ -127,8 +128,17 @@
<Style TargetType="{x:Type dxg:RowControl}"> <Style TargetType="{x:Type dxg:RowControl}">
<Style.Triggers> <Style.Triggers>
<DataTrigger Binding="{Binding Row.IsOpen}" Value="True"> <DataTrigger Binding="{Binding Row.IsOpen}" Value="True">
<Setter Property="Background" Value="#FF0078D7"></Setter> <Setter Property="Background" Value="#AA0078D7"></Setter>
</DataTrigger> </DataTrigger>
<MultiDataTrigger>
<MultiDataTrigger.Conditions>
<Condition Binding="{Binding Row.IsOpen}" Value="True"></Condition>
<Condition Binding="{Binding IsActive,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type dxdo:LayoutPanel}}}" Value="True"></Condition>
</MultiDataTrigger.Conditions>
<MultiDataTrigger.Setters>
<Setter Property="Background" Value="#FF0078D7"></Setter>
</MultiDataTrigger.Setters>
</MultiDataTrigger>
</Style.Triggers> </Style.Triggers>
</Style> </Style>
</dxg:GridControl.Resources> </dxg:GridControl.Resources>
......
using DevExpress.Xpf.Grid; using DevExpress.Xpf.Docking;
using DevExpress.Xpf.Grid;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment