I have a ResourceDictionary called CustomStyles.xaml within in my project. It is located in a subdirectory called RD, therefore its location is RD/CustomStyles.xaml.
My question is the following: I have a class-only file called CustomGroupBox.vb, and in the New(), I would like to access resources from the ResourceDictionary.
How can I do this since I have no corresponding XAML for CustomGroupBox.vb?
P.S. I'd like to note that CustomStyles.xaml has a BuildAction of Resource and not Content, therefore it is compiled along with the project, it does NOT output to the build directory (\bin). Therefore the following wouldn't work...
Me.Resources.Source = New Uri("RD\CustomStyles.xaml")