In my WPF UserControl I have this resource, please observe the comments in the Xml sample.
Is the DataContext
correct? If this rotation is part of the Content
you bound to earlier you either need to change the DataContext
or add that to the binding path of the rotation, i.e. make it {Binding Content.XAxisLabelRotation}
.
Do you know how to debug bindings? As you did not present any binding errors i would assume you do not, so if this is the case please read this article and make sure that you do provide the errors if you cannot debug a binding yourself in the future.