WPF - Resource Dictionary - "the resource could not be resolved"
I'm working on a VS extension. This is a WPF UserControl, thus no app.xaml. I'm trying to move my styles out of the main control's body to seprarte resource dictionaries. I've followed guides, but getting an error on any elements whic previously worked when they were in
<UserControl.Resources>
In the user control:
and:
(this throws the error - working before removal). And the resource dict:
What am I doing wrong?1 Reply
Also tried
<ResourceDictionary Source="Styles/ToolbarStyles.xaml"/>
- the path's not showing as the issue in designer view