Skip to content

Update base styles to match latest SDK #12839

Description

@MartinZikmund

What would you like to be added:

The Uno.UI generic.xaml styles are largely outdated and should be updated to match latest Windows SDK. In addition, many existing Uno workarounds can now be removed

Why is this needed:

For which Platform:

  • WebAssembly
  • Android
  • iOS
  • macOS (AppKit)
  • Mac Catalyst
  • Skia
    • WPF
    • GTK (Linux)
    • Linux Framebuffer
    • Tizen
  • Windows
  • Build tasks
  • Solution Templates

Anything else we need to know?

Activity

  1. added
    kind/enhancement
    triage/untriaged
    difficulty/tbd
    difficulty/challenging 🤯
    and removed
    triage/untriaged
    difficulty/tbd
    on Jul 10, 2023
  2. added
    project/styling 👔
    on Jul 11, 2023
  3. github-actions commented on Aug 9, 2025

    @github-actions
    Contributor

    Hey there — just a heads-up that this issue has been quiet for over a year. If there’s no update or comment in the next 10 days, it’ll be closed automatically. Feel free to remove the stale label or drop a note to keep it open.

  4. added
    stale
    on Aug 9, 2025
  5. removed
    stale
    on Aug 11, 2025
  6. MartinZikmund commented on Aug 11, 2025

    @MartinZikmund
    MemberAuthor

    Still relevant

  7. MartinZikmund commented on May 11, 2026

    @MartinZikmund
    MemberAuthor

    Current behavior

    TextBox on wasm dosn't get the winui style when set a style for it like:

      <Page.Resources>
        <Style TargetType="TextBox">
          <Setter Property="Margin" Value="8"/>
        </Style>
      </Page.Resources>

    Expected behavior

    keep pace with winui

    In fact, the same code on WinUI only partially preserves the "modern style":

    <Grid>  
    <Grid.Resources>
        <Style TargetType="TextBox">
          <Setter Property="Margin" Value="8"/>
        </Style>
      </Grid.Resources>
    <TextBox Text="Hi" /></Grid>
    Image

    In Uno, we get a very plain variant instead:

    Image

    The difference is due to the fact that our base Generic.xaml was not updated to be aligned with WinUI's current Generic.xaml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty/challenging 🤯kind/enhancementno-reproproject/styling 👔

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions