I have created a class inheriting Binding
called SettingsBindingExtension
. The constructor takes an object of a custom type ISettingsCategory
, and a string
.
In my XAML, I want to be able to set the content of an element using a declaration such as
Content="{settings:SettingsBinding ISettingsCategoryObject SomeString}"
whereas, ISettingsCategoryObject
is a reference to some instance of an object.
Perhaps this isn’t even possible, but if it were I don’t know what the proper syntax would be.
I’ve tried a couple ways to try and couple something like <categories:SettingsCategory>
into the content assignment, but to no avail.
Grant is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.