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.
Questions tagged [windows-app-sdk]
112 questions
1
vote
1 answer
How to build a WinUI 3 app using .NET 6 in an AzureDevops pipeline? Getting: error NETSDK1095
I have a blank WinUI3 desktop app:
I would like to build this app in an AzureDevops build pipeline:
pool:
vmImage: 'windows-2022'
variables:
solution:…

Felix
- 3,783
- 5
- 34
- 53
1
vote
1 answer
How to address the "Lock was destructed while held" Visual C++ runtime assertion
In a program that uses DirectX to render a 3D component I use a dedicated rendering thread that apparently gets created if I call DispatcherQueueController::CreateOnDedicatedThread(). What needs to be rendered is influenced by actions done on the…

ackh
- 1,648
- 2
- 18
- 36
1
vote
2 answers
Correct way to sort GridView or its backing ObservableCollection?
I've been writing a hobby project in WinUI 3 recently and have run into some trouble.
In my app, I have a GridView that's bound in XAML to an ObservableCollection, as recommended in the WinUI documentation. This works great, but now I need to be…

John Wells
- 1,139
- 1
- 10
- 27
0
votes
0 answers
Is there a Windows App SDK control for an up-down button?
I can't find anything very close. Looking for something like a light dimmer switch, or an up-down spinner with an option to provide an image. Or some way to use a simple button and decode the pointer release point to decide if it was above or…

Mark Stasak
- 1
- 1
0
votes
0 answers
How to run unit tests using UITestMethodAttribute with WindowsAppSDK?
I'm trying to create unit tests for views in my WindowsAppSDK application. I want to be able to run tests with the UITestMethodAttribute.
I'm running into build errors and the test host process crashing in Visual Studio 2022.
I tried using Template…

eric-v
- 3
- 3
0
votes
1 answer
How to disable the default visual hint for ListViewItem selection in WinUI3 (Windows 10)
In particular, I want to get rid of the default vertical blue animation that appears to the left of the selected ListViewItem after releasing the mouse button. That's at least the default behavior which I get on my Windows 10 pc.
I have this…

JBL
- 63
- 1
- 6
0
votes
0 answers
How to move selected tree node up and down in TreeNodeAdv by Syncfusion using c# on Button click
dev's
i want to change position of selected node in treeviewadv.
like when we click on up_arrow button the selected node should be move upward.
same as for down_arrow button the selected node should be move to bottom
use TreeViewAdv of Syncfusion

Gaurav Mali
- 3
- 3
0
votes
1 answer
How to design a picture in WinUI 3 that automatically adapts to the window
I'm doing a little software with Winui 3, and now I'm designing the homepage, and I'm hoping to make a scalable image like the Winui 3 Gallery homepage,but now I can't find any lessons or documents which can teach me how to make a page like this.
I…

Sciencekill
- 11
- 2
0
votes
0 answers
DesktopAcrylicController crashes in WinUI 3 app
I am trying to use the acrylic brush in WinUI 3, I read the documentation and it says that I must create an auxiliary class WindowsSystemDispatcherQueueHelper.
I have followed the process but it throws an exception.
using…

ImMike-SB
- 21
- 3
0
votes
0 answers
TypeError: unsupported operand type(s) in /sysconfig.py
I was trying to install Flexible Atomic Code (python version, https://github.com/flexible-atomic-code/fac) on my Windows with Anaconda Prompt.
However, when I do setup.py build as to 'build everything needed to install' from setup.py --help, I got…

Cheng Z
- 1
0
votes
1 answer
How to handle activation through files in WinUI 3 (Packaged)?
I want to define a filetype to open in my app and have already gotten this far:
I added this to my Package.appxmanifest inside the Application tag:

LightJack05
- 119
- 5
0
votes
0 answers
How to unit test for windows app sdk application
I have made an app in windows app sdk, this app works and has quite a bit of code.
However recently we had a small unseen bug that caused a bit of an issue. To prevent this, we have decided to create unit tests that test from the inside instead of…
0
votes
1 answer
WinUI (C#): How To Share Data Between Pages - The Proper Way?
I'm very new to this, especially WinUI, so please bear with me.
I'm writing an UI app with Visual Studio which communicates with a console program through a JSON file with properties. The UI has two main sections and a setting page. The pages share…

ak2yny
- 3
- 2
0
votes
1 answer
How do you underline AccessKey characters (mnemonics) in applications built using WinAppSDK/WinUI?
Microsoft's accessibility guidance for Win32 application development is to assign access keys to menu items:
Assign access keys to all menu items. No exceptions.
In Win32 applications, this is done by placing an ampersand in a menu item's assigned…

eFail
- 99
- 5
0
votes
1 answer
Is it possible to launch a WinUI 3 C# Application without Xaml?
I've been following the Microsoft documentation to try simplifying the App.xaml and App.xaml.cs files from the standard VisualStudio Blank WinUI 3 template into a single App.cs file.
So far, I've got a version that compiles:
using…

Leo Orientis
- 841
- 11
- 19