WPF Custom controls/User controls binding issues and total confusion
need to create a reusable WPF control for displaying plugin settings. There is a defined set of settings, e.g., toggle, combo, file path.
Each of those settings requires its own WPF control.
My initial attempt was to create a User Control, and define a Dependency Property within it:
I set the data context in the constructor to
Initially, I've tried using
The view of the User control is:
I place my control into my MainWindow.xaml:
But the data is not bound!!!
Each of those settings requires its own WPF control.
My initial attempt was to create a User Control, and define a Dependency Property within it:
I set the data context in the constructor to
thisInitially, I've tried using
IEnumerable as a type, but let's stay with this non-collection type for now.The view of the User control is:
I place my control into my MainWindow.xaml:
But the data is not bound!!!