0

I wanting to you the styles from ModernUI with just a UserControl meaning i have no app.xaml file and i am unsure how to reference firstfloor.ModernUI in just to a usercontrol to inherit the styling.

Dustin Cooper
  • 43
  • 1
  • 4

1 Answers1

0

You can add the styles as resources in your user control:

<UserControl.Resources>
    <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/FirstFloor.ModernUI;component/Assets/ModernUI.xaml" />
                <ResourceDictionary Source="/FirstFloor.ModernUI;component/Assets/ModernUI.Dark.xaml"/>
...
Mark Richman
  • 28,948
  • 25
  • 99
  • 159