We want to do a little customize to the ContainerSplitter, so that it can have some different color when mouse is over it.
<Style TargetType="{x:Type docking:ContainerSplitter}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type docking:Splitter}">
<Grid>
<Grid x:Name="Grid" Background="#E0E0E0E0">
<Grid.Triggers>
<EventTrigger RoutedEvent="MouseEnter">
<BeginStoryboard>
<Storyboard>
<ColorAnimation Duration="0"
FillBehavior="HoldEnd"
From="#E0E0E0E0"
Storyboard.TargetName="Grid"
Storyboard.TargetProperty="(Grid.Background).(SolidColorBrush.Color)"
To="#A0A0A0A0" />
</Storyboard>
</BeginStoryboard>
</EventTrigger>
<EventTrigger RoutedEvent="MouseLeave">
<BeginStoryboard>
<Storyboard>
<ColorAnimation Duration="0"
FillBehavior="HoldEnd"
From="#A0A0A0A0"
Storyboard.TargetName="Grid"
Storyboard.TargetProperty="(Grid.Background).(SolidColorBrush.Color)"
To="#E0E0E0E0" />
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Grid.Triggers>
</Grid>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
However, the issue we have is there will be a Rectangle stay in the original place when we drag it.
How could we handle this? Many thanks, Haibing