I have a Property in my App.xaml.cs called User , which contains user information. I read here that you cannot have a dependency property in an App class.
I decided to use App.cs because it is global for the whole program, and this is used for access control, but any alternatives are welcome.
Now my question is: how can I bind this property to my UserControls and Windows.
IsEnabled="{Binding Path=User, Converter={StaticResource hasAccessConverter}, ConverterParameter=Mid}"
This obviously only works on a property on a DataContext . I want to access an application property. Can someone show me an example of binding to the App.xaml.cs property if I implement INotifyChanged ?
Thanks -Oliver
data-binding wpf
Oliver
source share