Normal to do binding in code behind I do
tb.SetBinding(TextBlock.FontSizeProperty, b);I have a user control with DependencyProperty UserControlPropertyHow do I replace the TextBlock.FontSizeProperty with my UserControlProperty?
tb.SetBinding(TextBlock.FontSizeProperty, b);I have a user control with DependencyProperty UserControlPropertyHow do I replace the
TextBlock.FontSizeProperty with my UserControlProperty?
Since a custom dependency property is a static property of the usercontrol class you can simply use <UserControlClassName>.<DependencyProperty>
do you mean something like myUserContro.MyDependencyProperty? I tried but MyDependencyProperty is not available for the control, it doesn't show up in my intelesence once I put "Static" in front of the dp