Windows icon indicating copy to clipboard operation
Windows copied to clipboard

SettingsCards do not display correctly on `dotnet run`

Open nlogozzo opened this issue 2 years ago • 2 comments

Describe the bug

When running an unpackaged WinUI 3 Windows App SDK application via dotnet build && dotnet run in a Terminal, WCT SettingsCard widgets do not display correctly.

When building and running the app from Visual Studio 2022, the widgets are displayed correctly

Steps to reproduce

Start a new unpackaged WinUI 3/WinAppSDK project and add a wct:SettingsCard run the app via the terminal with dotnet build && dotnet run and see that the SettingsCard is not displayed correctly.

Expected behavior

Running from VS 2022:

image

Screenshots

dotnet build && dotnet run: image

Code Platform

  • [ ] UWP
  • [X] WinAppSDK / WinUI 3
  • [ ] Web Assembly (WASM)
  • [ ] Android
  • [ ] iOS
  • [ ] MacOS
  • [ ] Linux / GTK

Windows Build Number

  • [ ] Windows 10 1809 (Build 17763)
  • [ ] Windows 10 1903 (Build 18362)
  • [ ] Windows 10 1909 (Build 18363)
  • [ ] Windows 10 2004 (Build 19041)
  • [ ] Windows 10 20H2 (Build 19042)
  • [ ] Windows 10 21H1 (Build 19043)
  • [ ] Windows 10 21H2 (Build 19044)
  • [ ] Windows 10 22H2 (Build 19045)
  • [X] Windows 11 21H2 (Build 22000)
  • [ ] Other (specify)

Other Windows Build number

No response

App minimum and target SDK version

  • [ ] Windows 10, version 1809 (Build 17763)
  • [ ] Windows 10, version 1903 (Build 18362)
  • [ ] Windows 10, version 1909 (Build 18363)
  • [ ] Windows 10, version 2004 (Build 19041)
  • [ ] Windows 10, version 2104 (Build 20348)
  • [ ] Windows 11, version 22H2 (Build 22000)
  • [ ] Other (specify)

Other SDK version

Windows App SDK 1.4.1

Visual Studio Version

2022

Visual Studio Build Number

No response

Device form factor

No response

Additional context

No response

Help us help you

No, I'm unable to contribute a solution.

nlogozzo avatar Oct 01 '23 00:10 nlogozzo

@nlogozzo I don't know if building/running from the commandline is a supported scenario for the WASDK/WinUI3? See these discussions/issues in the platform repo:

  • https://github.com/microsoft/WindowsAppSDK/discussions/2391
  • https://github.com/microsoft/WindowsAppSDK/issues/2922

I would maybe add a note to the issue with your images? It at least seems like you can run, but there are still issues remaining? I don't think there's anything we can do here from the Toolkit side.

michael-hawker avatar Oct 03 '23 21:10 michael-hawker

I don't know if building/running from the commandline is a supported scenario for the WASDK/WinUI3?

The issue isn't building and running from command line....it builds and runs just fine

I don't think there's anything we can do here from the Toolkit side.

The only issue is that SettingsCard toolkit widget isn't displayed correctly when running from commandline as seen from this: https://user-images.githubusercontent.com/17648453/271800256-cc2761d1-6335-4f5f-b557-e25d38d984ed.png

Whereas from VS it looks correctly like this: https://user-images.githubusercontent.com/17648453/271800250-5ccc0d0c-872a-4a75-9226-a871dcf2513e.png

Every other WinUI widget looks and works correctly, just this one Toolkit widget doesn't. Sorry if that was unclear

nlogozzo avatar Oct 03 '23 21:10 nlogozzo