How to bind to a WPF dependency property when the datacontext of the page is used for other bindings? (Simple question)
Wpf – How to bind to a WPF dependency property when the datacontext of the page is used for other bindings
data-bindingdependency-propertieswpf
Related Topic
- C# – How to bind a WPF DataGrid to a variable number of columns
- Wpf – How to bind RadioButtons to an enum
- Wpf – How to bind inverse boolean properties in WPF
- .net – What’s the difference between a dependency property and an attached property in WPF
- Wpf – How to bind multiple values to a single WPF TextBlock
- C# – How to exit a WPF application programmatically
- C# – How to bind an enum to a combobox control in WPF
- Javascript – How does data binding work in AngularJS
Best Answer
The datacontext of the element needed to be set.
XAML:
C#:
Also see this related question:
WPF DependencyProperties