I wish to bind the FontSize and FontFamily of the TextBlock of SeriesItemLabel to a DependencyObject in the code-behind portion of the code. Using styles, I can successfully do this to items like ChartItemLabel, but when I set the same items for SeriesItemLabel, I get binding errors stating how the element can not be found, yet the binding reads the same:
The help section on lists how to retemplate the control, but I don't wish a completely new look, I want to keep the default look; the user should simply be allowed to make it bigger/smaller.
How should I create bindings for SeriesItemLabel?
<
Setter
Property
=
"FontFamily"
Value
=
"{Binding ElementName=MyDependencyObject, Path=Backend.LegendFontFamily}"
/>
The help section on lists how to retemplate the control, but I don't wish a completely new look, I want to keep the default look; the user should simply be allowed to make it bigger/smaller.
How should I create bindings for SeriesItemLabel?