Questions tagged [windows-app-sdk]

The Windows App SDK provides a unified set of APIs and tools that can be used by desktop apps on Windows 11 and 10. It includes features like WinUI 3, tools for App Lifecyle management, windows management, and more.

112 questions
-1
votes
1 answer

How to change window Title bar Color in WinUI 3

Been looking into docs, web and the gallery app. The code provided in the UI Gallery app is not working. Title bar Default Color
-1
votes
1 answer

WinUI 3: Is there a way to force a canvas to be updated after clearing it in a event

I use this to clear the canvas. mainCanvas().Children().Clear(); The UI will surely change after the event, but I would like to take a screenshot just after the canvas being cleared. I've tried various methods but always get a screenshot of…
ACGMN
  • 9
  • 3
-1
votes
2 answers

Get the display language that my application is currently using

I plan to equip the settings page of my Windows App SDK app with a ComboBox that contains all languages my app supports so that the user can pick whatever language is desired. Graphically, it looks as follows: I populate the content of the ComboBox…
ackh
  • 1,648
  • 2
  • 18
  • 36
-1
votes
1 answer

C++/WinRT WinUI3: How to show a ContentDialog before I close the MainWindow?

I'm trying to show a ContentDialog to make sure the user confirm close when they choose the close button of window. But in WinUI3, I cannot find CloseRequested Event. I trid to use AppWindow and Hwnd Interop and AppWindow.Closing, but it didn't…
-1
votes
1 answer

Button appears all black in dark theme - Windows 11 (WinUi 3)

I am develop a new app for Windows 11 with WinUi 3 and in my MainPage the button appears all black in dark theme: Why this happen? This is a resume of my code:
Luís
  • 157
  • 2
  • 10
-1
votes
1 answer

Project Reunion - Application won't complile

I had a solution built with Project Reunion (0.8 preview) which was compiling and running fine. My visual studio and extensions did an update and now the application now doesn't compile, with 9 error messages, all variations of below I've tried…
Ceri Turner
  • 830
  • 2
  • 12
  • 36
-2
votes
1 answer

WinUi3 Expander class in not found

I'm developing a simple windows 10 utility app using C# & WinUi 3. So the main component of my app is the Expander component/control. My problem is that the Expander control is not found. It's not found in the Windows.UI.Xaml.Controls namespace. I'm…
Ali BEN AMOR
  • 126
  • 1
  • 6
1 2 3 4 5 6 7
8