Skip to content

ThemeMode style not applying to TextBlock in a Page #10759

Closed
@safreed-msft

Description

@safreed-msft

Description

I'm trying out the new fluent ui theming in .NET 9 but hit an issue where the theme styles aren't inherited by pages. (update: Seems to only be for TextBlocks?)

Image

Reproduction Steps

  1. Create new WPF project with .NET 9
  2. Set ThemeMode="Dark" in App.xaml
  3. Create a Page with just a TextBlock
  4. In MainWindow.xaml, add a Frame and navigate to the created Page

Expected behavior

Page's textblock is styled appropriately (light foreground color since background is dark)

Actual behavior

Text foreground is dark

Regression?

No response

Known Workarounds

No response

Impact

No response

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions