Is it possible to set different color to axis ticks and axis title.
In 2D-Chart i did it by changing the style of DefaultTickLabel:
<Style x:Key="NumericAxisForMvvm" TargetType="axis:NumericAxisForMvvm">
<Setter Property="FontSize" Value="12" />
<Setter Property="FontFamily" Value="Arial" />
<Setter Property="FontWeight" Value="Bold" />
<Setter Property="TickTextBrush" Value="Red" />
<Setter Property="TickLabelStyle">
<Setter.Value>
<Style TargetType="s:DefaultTickLabel">
<Setter Property="FontSize" Value="16" />
<Setter Property="FontWeight" Value="Normal" />
<Setter Property="FontFamily" Value="Courier New" />
<Setter Property="Foreground" Value="Blue" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="s:DefaultTickLabel">
<ContentControl Content="{Binding}"
ContentTemplate="{TemplateBinding ContentTemplate}"
IsTabStop="False"
Foreground="{TemplateBinding Foreground}"
FontFamily="{TemplateBinding FontFamily}"
FontSize="{TemplateBinding FontSize}"
FontWeight="{TemplateBinding FontWeight}"/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Setter.Value>
</Setter>
</Style>
Same procedure seems doesn’t work for 3D-Charts.
How can i achieve this?
Is that currently possible?
Best Regards
Silvester
- Silvester Schneidt asked 3 years ago
- last active 3 years ago