1: <Style x:Key="ColumnColoredDataPointStyle" TargetType="chartingToolkit:ColumnDataPoint">
2: <Setter Property="Background" Value="Orange"/>
3: <Setter Property="BorderBrush" Value="Black"/>
4: <Setter Property="BorderThickness" Value="1"/>
5: <Setter Property="IsTabStop" Value="False"/>
6: <Setter Property="Template">
7: <Setter.Value>
8: <ControlTemplate TargetType="chartingToolkit:ColumnDataPoint">
9: <Border x:Name="Root" Opacity="0" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
10: <VisualStateManager.VisualStateGroups>
11: <VisualStateGroup x:Name="CommonStates">
12: <VisualStateGroup.Transitions>
13: <VisualTransition GeneratedDuration="0:0:0.1"/>
14: </VisualStateGroup.Transitions>
15: <VisualState x:Name="Normal"/>
16: <VisualState x:Name="MouseOver">
17: <Storyboard>
18: <DoubleAnimation Duration="0" Storyboard.TargetName="MouseOverHighlight" Storyboard.TargetProperty="Opacity" To="0.6"/>
19: </Storyboard>
20: </VisualState>
21: </VisualStateGroup>
22: <VisualStateGroup x:Name="SelectionStates">
23: <VisualStateGroup.Transitions>
24: <VisualTransition GeneratedDuration="0:0:0.1"/>
25: </VisualStateGroup.Transitions>
26: <VisualState x:Name="Unselected"/>
27: <VisualState x:Name="Selected">
28: <Storyboard>
29: <DoubleAnimation Duration="0" Storyboard.TargetName="SelectionHighlight" Storyboard.TargetProperty="Opacity" To="0.6"/>
30: </Storyboard>
31: </VisualState>
32: </VisualStateGroup>
33: <VisualStateGroup x:Name="RevealStates">
34: <VisualStateGroup.Transitions>
35: <VisualTransition GeneratedDuration="0:0:0.5"/>
36: </VisualStateGroup.Transitions>
37: <VisualState x:Name="Shown">
38: <Storyboard>
39: <DoubleAnimation Duration="0" Storyboard.TargetName="Root" Storyboard.TargetProperty="Opacity" To="1"/>
40: </Storyboard>
41: </VisualState>
42: <VisualState x:Name="Hidden">
43: <Storyboard>
44: <DoubleAnimation Duration="0" Storyboard.TargetName="Root" Storyboard.TargetProperty="Opacity" To="0"/>
45: </Storyboard>
46: </VisualState>
47: </VisualStateGroup>
48: </VisualStateManager.VisualStateGroups>
49: <ToolTipService.ToolTip>
50: <ContentControl Content="{TemplateBinding FormattedDependentValue}"/>
51: </ToolTipService.ToolTip>
52: <Grid Background="{TemplateBinding Background}">
53: <Rectangle>
54: <Rectangle.Fill>
55: <LinearGradientBrush>
56: <GradientStop Color="#77ffffff" Offset="0"/>
57: <GradientStop Color="#00ffffff" Offset="1"/>
58: </LinearGradientBrush>
59: </Rectangle.Fill>
60: </Rectangle>
61: <Border BorderBrush="#ccffffff" BorderThickness="1">
62: <Border BorderBrush="#77ffffff" BorderThickness="1"/>
63: </Border>
64: <Rectangle x:Name="SelectionHighlight" Fill="Red" Opacity="0"/>
65: <Rectangle x:Name="MouseOverHighlight" Fill="White" Opacity="0"/>
66: </Grid>
67: </Border>
68: </ControlTemplate>
69: </Setter.Value>
70: </Setter>
71: </Style>