Skip to content

Can not overwrite the CheckBoxSize or CheckBoxGlyphSize for CheckBoxSize #10370

@SongOfYouth

Description

@SongOfYouth

Describe the bug

Can not change the CheckGlyph size by overwritting the CheckBoxSize or CheckBoxGlyphSize resource, because they are assigned via StaticResource : https://github.com/microsoft/microsoft-ui-xaml/blob/589ced40542b9b4de2fddf0e58a1e3eecd164e2f/src/controls/dev/CommonStyles/CheckBox_themeresources.xaml#L602。

Steps to reproduce the bug

<CheckBox Content="CheckBox"
          MinWidth="8">
    <CheckBox.Resources>
        <x:Double x:Key="CheckBoxGlyphSize">8</x:Double>
        <x:Double x:Key="CheckBoxSize">8</x:Double>
    </CheckBox.Resources>
</CheckBox>

Expected behavior

No response

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.6.5: 1.6.250205002

Windows version

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingteam-ControlsIssue for the Controls team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions