How to apply resources, if no App.xaml present? #453
MatthiasSchilder
started this conversation in
General
Replies: 1 comment
-
Add a <ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:ui="http://schemas.modernwpf.com/2019"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<ResourceDictionary.MergedDictionaries>
<ui:ThemeResources />
<ui:XamlControlsResources />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a class library containing a window I want to style with ModernWpfUI. Because it is a class library, and the library is used from a Windows Form application, I don't have an App.xaml anywhere. I've tried to put it in my Windows.Resources, but this gives me a broken appearance at runtime (see screenshot). Is it possible to apply the resources, if there is no App.xaml present?
Beta Was this translation helpful? Give feedback.
All reactions