I have created the following style for my charts legend:
<Style TargetType="{x:Type s:SciChartLegend}">
<Setter Property="Background" Value="DarkGray"/>
<Setter Property="ItemTemplate">
<Setter.Value>
<DataTemplate DataType="{x:Type s:XyzSeriesInfo}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Ellipse Grid.Column="0"
VerticalAlignment="Center"
Stretch="Fill"
Width="40"
Height="40"
StrokeThickness="3"
Stroke="{Binding ????, Converter={StaticResource SlitValveToBrushConverter}}" />
<TextBlock Grid.Column="1"
Margin="5,0,10,0"
HorizontalAlignment="Center"
Text="{Binding SeriesName}" />
</Grid>
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
I want to bind the Stroke of my ellipse to the Z Value (the string part) of my DataSeries (property is called ChartItems) which is of type XyzDataSeries3D<DateTime, int, string>
How can I bind to the Z Value?
- Craig Muckleston asked 7 years ago
- last active 6 years ago