WPF - How do I expose namespaces throughout a project
- by Mark Pearl
Sorry... I hope this isnt a really dumb question... but I couldnt find the answer anywhere. I have a WPF application, in each of my usercontrols / windows I am currently putting the following code in xaml in the header...
xmlns:properties="clr-namespace:MaxCut2.Properties"
This particular properties namespace I use in every window / usercontrol in my project and I would have thought that if I had put the code in my App.xaml, it would have been exposed to all the child windows/uc's - but it doesn't seem to work.
Is there a way that I can expose this without having to declare it in every file in XAML?