-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows 11 Theming Does Not Work In PowerShell WPF Window #9338
Comments
cc @dotnet/wpf-developers |
Hey @antonfirsov, there is a slight issue here. As of now, the mechanism for accent color, theme switching, etc. will work when the resource dictionary is added to App.xaml, in coming preview releases we will add the support for using Win11 themes at window level explictly. For now, you will have to add it in your app.xaml. |
@dipeshmsft Appreciate this insights. Is there an issue, branch, or PR that can be tracked to know when it is released? |
Not fixed still in .NET 9 preview 5 |
Not fixed still in .NET 9 preview 6 |
@dotnet/wpf-developers is there a tracking issue in dotnet/wpf we can link, so we can close this? Or should we transfer this one? |
URL(s)
https://github.com/dotnet/core/blob/main/release-notes/9.0/preview/preview4/9.0.0-preview.4.md
Description
The following code should render a Windows 11 style WPF Window in PowerShell 7 (fx dependent, using .NET 9 Preview 4)
Current Result: Black window, although I can tell the elements are there because if I hover over the textbox my cursor changes. Doesn't appear to be properly loading the ResourceDictionary
![image](https://private-user-images.githubusercontent.com/1930697/335409869-0619b8f6-0254-47af-b4c9-53f5acb300bf.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1NzY1NTEsIm5iZiI6MTcyMDU3NjI1MSwicGF0aCI6Ii8xOTMwNjk3LzMzNTQwOTg2OS0wNjE5YjhmNi0wMjU0LTQ3YWYtYjRjOS01M2Y1YWNiMzAwYmYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MTBUMDE1MDUxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MWUzN2IwZDljMmVjZWUxNjBlMWU3YWZjNGUzNDg2OWY0YjFhODE0NDc3YzQyYWQ2OTFiNjU1YjZkY2VhNTlkMiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.HKDiCqtZLPKRm3chOIn5ciDv9WebXI67Zuh2N0A-nWE)
Confirmed that my PowerShell 7 console is using .NET 9 preview 4:
Perhaps I am just missing something beyond adding the proper ResourceDictionary?
The text was updated successfully, but these errors were encountered: