Skip to content

How to use default styles for controls as base for custom styles without copying #708

Answered by AndrewKeepCoding
Balkoth asked this question in Q&A
Discussion options

You must be logged in to vote

You need to merge the resource file.

App.xaml

<Application
    x:Class="WinUIDemoApp.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:WinUIDemoApp">
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
                <!--  Other merged dictionaries here  -->
                <ResourceDictionary Source="ms-appx:///CommunityToolkit.WinUI.Controls.HeaderedControls/HeaderedContentControl/HeaderedContentControl.xaml" />
            </ResourceDictionary.…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Balkoth
Comment options

@ghost1372
Comment options

@Balkoth
Comment options

@AndrewKeepCoding
Comment options

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