Guess that is the answer - no easy or native way to reuse except maybe building with attached behavior or other messy/specific fuzzy code.
Would have been nice to use nested binding / apply a binding found using a binding.
Forward Binding i.e. reapply a binding
Lars Larsson
31
Reputation points
Is it possible to create an attached property containing a Binding/BindingBase & then apply it to a control i.e. forward a binding thru XAML.
Example would be you can have global style that use attached properties & then local styles to set them or retrieve from parents. Example would be to control IsExpanded in DataGrid GroupItem by expressing the "binding" somewhere else & then apply it to the control. This includes controlling mode=two-way or one-way.
One example would be if binding results in a binding that is applied. Any good way or somehow using markup-extensiosn?
1 answer
Sort by: Most helpful
-
Lars Larsson 31 Reputation points
2023-09-28T10:10:38.24+00:00