Reputation: 9024
I found this article when challenged with a problem in one of my applications. I understand the usage, but cannot find the namespace for the local
element where we find local:SetterValueBindingHelper.PropertyBinding
. So what namespace does this reference? Google
has not found the class either, nor MSDN
. Thanks for the help!
Upvotes: 0
Views: 96
Reputation: 896
Local
just means an alias for a namespace in your own (or someone else's) code. E.g. say you took the SettingValueBingingHelper and saved it in your project, in the namespace MyNamespace. To use it in xaml you would reference the namespace by adding to your UserControl (or Page)
xmlns:local="clr-namespace:MyNamespace;assembly=MyAssembly"
It does't have to be local
- it could be named anything that is relevant to your code, e.g. helpers
.
Another example would be using the Triggers from System.Windows.Interactivity - you would reference the namespace:
xmlns:i="clr-namespace:System.Windows.Interactivity;
assembly=System.Windows.Interactivity"
and then use the triggers in your xaml:
<i:Interaction.Triggers>
BTW, the link in your original post has been updated.
Upvotes: 1