Charting: ColumnDataPoint styling error?

Jul 3, 2009 at 8:02 AM
Edited Jul 3, 2009 at 8:03 AM

I have the following style for the ColumnDataPoint

<Style
        x:Key="customStyle"
        TargetType="chartingToolkit:ColumnDataPoint">
            <Setter Property="Background" Value="DarkGray"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="chartingToolkit:ColumnDataPoint">
                        <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" >
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition />
                                    <RowDefinition />
                                </Grid.RowDefinitions>
                               
                                <Border Background="Red" />
                                <Border Grid.Row="1" Background="Yellow" />
                            </Grid>
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

 

I should see a column split in two: red and yellow. But that doesn't happen. Why?