Skip to content

How to use Controls without rest of Theme #4029

Answered by punker76
punker76 asked this question in Q&A
Discussion options

You must be logged in to vote

To use only single controls of MahApps, leave out the Controls.xaml completely and use only the desired resources.

App.xaml

<Application x:Class="WpfApp9.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls"
             StartupUri="MainWindow.xaml">
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <!-- MahApps.Metro resource dictionaries. Make sure that all file names are Case Sensitive! -->

                <!-- disable this -->
                <!--

Replies: 1 comment 1 reply

Comment options

punker76
Jan 27, 2021
Maintainer Author

You must be logged in to vote
1 reply
@Montago
Comment options

Answer selected by punker76
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants