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
0 answers
Microsoft Indic Input 3 is not working with Win UI 3 (Windows App SDK) application Textbox
I am developing a Winui 3 (Windows App SDK) application in which I need a Hindi input functionality in textbox with Remington GAIL keyboard Layout, from my research I found that the Hindi Indic Input 3 tool has this, I have installed this tool but…

Sidhu Shivakoti
- 11
- 3
1
vote
1 answer
How to run Windows App SDK packaged C# app at startup?
I want to run my packaged c# app to start at log-in. Under the guidance of this post, I configured Package.appxmanifest and added relevant code to my app. However, when users log in, the splash screen appears but then the application fails to…

Frank
- 136
- 1
- 10
1
vote
2 answers
How to get an horizontal oriented listview to stretch horizontally?
I'm trying to get a ListView to stretch horizontally to fill its parent (a Grid). I defined the ListView.ItemsPanel to be of type StackPanel, with Horizontal orientation.
I searched around and found that the trick to get the ListViewItems to stretch…

Rui Barreiros
- 63
- 5
1
vote
1 answer
WindowsApp AppWindow content
Windows 11
VS2022
WinUI3 Desktop WindowsAppSDK 1.2.230
.Net core 7
I'm creating a desktop app using MVPVM design principles. The documentation says that Microsoft.UI.Xaml.Window used within a UWP is not longer available, and is switching to…

Keyboard_Kowboy
- 41
- 8
1
vote
1 answer
Where is the generic.xaml file located?
If you want to use the default styles, colors, etc..., you need to bring them from the generic.xaml file that comes with WindowsAppSDK NuGet packages.
Hence the question, where is located the generic.xaml file?

Andrew KeepCoding
- 7,040
- 2
- 14
- 21
1
vote
2 answers
Windows App SDK 1.2: How to prevent the application from shutdown when the main window is closed?
I am building a Windows App SDK app that needs to stay alive and display a tray icon when the main window is closed.
For WPF, I know this can be achieved by setting ShutdownMode="OnExplicitShutdown". And I wonder how can I do this with Windows App…

Frank
- 136
- 1
- 10
1
vote
3 answers
How do you access the asset folder in an unpackaged Windows SDK application?
I added this to the csproj file
Always
so I can access the asset folder after an install.
However, I can not find any documentation…

John Glen
- 771
- 7
- 24
1
vote
0 answers
Why is my Properties empty even though I have WinUI 3 Tools installed in Visual Studio 2022?
I'm using Visual Studio 2022 Community edition, version 17.4.1. I'm working on an app that uses WinUI 3 SDK and I noticed that my properties is empty. I initially though this was due to WinUI 3 being new (compared to WPF or UWP) however I saw few…

cptalpdeniz
- 368
- 1
- 11
1
vote
1 answer
Retrive Window Handle in Class Library WinUI3
I am trying to use the PrintManager in a WinUI3 class library project. But with WinUI, currently, we can only use PrintManager if we have the windows handle(HWND) unlike UWP where we could simply use ForCurrentView() without any parameters.
Here is…

Shantanu Methikar
- 115
- 1
- 10
1
vote
1 answer
How to Save data on application close or entered background in WinUI3 app
How to intercept app_closing or app_entering_background in WinUi 3 app.
In UWP apps we do have Application_EnteredBackground event , in which we can intercept app close, we use GetDeferral() to save data .
Is there any same kind of event in WinUI 3…

Noorul
- 873
- 2
- 9
- 26
1
vote
1 answer
How to I open a file when I start debugging in Visual Studio?
I'm making a WinUI3 app in Visual Studio, and I'd like to open a file when I start debugging, so that activatedEventArgs.Kind == ExtendedActivationKind.File as per this.
I'm really struggling to turn anything up with google, so am making a question…

Siyh
- 1,747
- 1
- 17
- 24
1
vote
0 answers
Windows Template Studio (WinUI 3 in Desktop) - Customize TitleBar
I am a newbie and i am trying to customize the titlebar in the App. I have used Windows Template Studio to create a NavigationView Project for (winui 3 in Desktop) c#. The App does not create a MainWindow.xaml.
I've gone through the docs, which i…

Jwrite
- 19
- 1
1
vote
1 answer
Compile-Time Error When Navigating Between Pages C++/WinRT Windows App SDK
I have been trying for a long time to get page navigation to work in a Windows App SDK C++/WinRT-based app, to no avail. I have two pages and I'm trying to navigate from Page 1 to Page 2 via code-behind in an event handler. I have tried embedding a…

Revvz
- 455
- 1
- 6
- 14
1
vote
2 answers
WinUI: How to reduce duplicate code when using lightweight styling?
I am using lightweight styling to style a button:

Felix
- 3,783
- 5
- 34
- 53
1
vote
2 answers
How can I bind a button to a viewmodel command from within a data template that's in Page.Resources?
In my app using the Windows App SDK, I'm trying to get a button-tapped event to trigger a command in my viewmodel. I have gotten this to work when the data template is between the and on the page, but it won't work when the data template is in…

Matt
- 145
- 1
- 13