dotnet / dotnet/wpf

When applying Fluent design in WPF on .net9, the style of controls set in App.xaml does not adhere to the Fluent design.

Open
#10,834 4 comments 0 reactions 1 assignee Claimed by @dipeshmsft View on GitHub
Investigate Win 11 Theming
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

### Description

When applying Fluent design in .NET 9 and specifying the common styles of the controls in 'Window.Resource', the styles are reflected correctly. However, if specified in the ResourceDictionary of App.xaml, it works fine in the Visual Studio design time, but compiles into an old style that is not Fluent.

### Reproduction Steps

This will work well.
```




<Setter Property="FontSize" Value="30"/>






```

This won't work well.
```





```

app.xaml
```







<Setter Property="FontSize" Value="30"/>


```

### Expected behavior

Image

### Actual behavior

Image

### Regression?

_No response_

### Known Workarounds

_No response_

### Impact

_No response_

### Configuration

_No response_

### Other information

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.