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
0
votes
0 answers
ServiceLocator.Current - logic with current activated window not working
I have been using windows-app-sdk and winui3 for developing my application which supports multiple windows. As an architecture, I am using ServiceLocator and DI to get the singleton and scoped services for my multiple windows. The logic of…

NAVEEN V
- 42
- 6
0
votes
0 answers
How do I use an existing element as content for every new tabview item?
Hi I am using C# WinUI 3 WinAppSDK for my app.
I have a tab view with add tabs option and i also have a home page panel which is collapsed at general state.
Now whenever the user adds a new tab, I want the same home page to appear as its content…

Hemanth
- 46
- 2
0
votes
1 answer
Get event when scrollviewer ended WinUI3 WinAppSDK
I'm using ScrollViewers inside NavigationViewItems, and I need choose next item after ending of scrollview automatically. I tried to find scroll ending event in docs, but I doesn't find it. Can you help me with it? How I can catch ScrollViewer…

Biryukov Georgy
- 7
- 2
0
votes
1 answer
Keep WinUI 3 (Windows App SDK) window always at bottom
I have the following window using Windows App SDK 1.1.5 and WinUI 3, I want to keep it always at the bottom, just above the desktop, m_AppWindow.MoveInZOrderAtBottom(); moves it to the very bottom as I intended, but once it is pressed it comes back…

Autumn
- 325
- 3
- 13
0
votes
1 answer
WindowsAppSDK doesnt have ProtocolActivatedEventArgs
I am trying to handle protocol activation and as per docs I should handle all of that within OnLaunched method so that is what I am trying to do here, but Microsoft.Windows.AppLifecycle.ProtocolActivatedEventArgs doesnt exist.
protected override…

Muhammad Touseef
- 4,357
- 4
- 31
- 75
0
votes
2 answers
WindowsAppSDK denies permission to read PublisherCache folder
As I am upgrading my uwp app to WindowsAppSDK and WinUI3 desktop app, I got this exception of Permission denied on PublisherCacheFolder. And it was working fine in uwp. I intend to package the app with msix so I will still technically upload it to…

Muhammad Touseef
- 4,357
- 4
- 31
- 75
0
votes
0 answers
PublicClientApplicationBuilder does not contain a definition for WithUseCorporateNetwork
So I was upgrading my UWP solution to WindowsAppSDK and Winui3 when I noticed this error that Microsoft.Identity.Client doesnt seem to have WithUseCorporateNetwork method anymore in the build pipeline of PublicClientApplicationBuilder which produces…

Muhammad Touseef
- 4,357
- 4
- 31
- 75
0
votes
1 answer
how to make UWP class library to support WindowsAppSdk apps
I have developed a UWP class library , and it is already used in various projects.
Now I want to make this UWP class library to support WindowsAppSdk apps too.
When I try to refer UWP Library in WindowsAppSdk app, getting error like "Project is not…

Noorul
- 873
- 2
- 9
- 26
0
votes
1 answer
Desktop-bridge and Windows APP SDK - This function must be called from a UI thread
I am trying to implement in-app purchase into my WinRT appliation using desktop bridge and Windows App SDK with WinUI 3. I have simple method:
class TransactionService
{
void buyOrRestore() {
....
…

JaSHin
- 211
- 2
- 16
- 43
0
votes
1 answer
Why does AppWindowTitleBar.PreferredHeightOption cause CS0120 in the Windows App SDK?
I am currently using Winui-3 and the Windows App SDK for the first time as I usually write apps in classic Win32 C++. My app has a tall title bar (48px) and I want the caption buttons to be sized appropriately. I have already tried using the method…

Davide_24
- 67
- 7
0
votes
0 answers
Monitor/poll a value in a database from a windows app when changed by a mobile app
So I have a windows app designed to monitor an integer value (simply 0 or 1) from my hosted database via my web api. So when a user changes this value from an android or ios app the value will be either a 0 or a 1, if it is a 1, the windows app will…

aviles622
- 1
- 2
0
votes
1 answer
Navigate between windows in WinUI 3
I am building a program where the main window (MainWindow) has a "Login" button. Login button takes you to LoginWindow. How do I navigate from the MainWindow to the LoginWindow on the click of a button? Or maybe activate the login window and…

wiswasi
- 23
- 6
0
votes
1 answer
.Net Maui .exe wont run on Windows server
I have built a .net maui application with blazor using the following command:
dotnet publish -f net6.0-windows10.0.19041.0 -c Release -p:WindowsPackageType=None /p:PublishSingleFile=true /p:IncludeNativeLibrariesForSelfExtract=true --self-contained…

Benjiinator
- 3
- 3
0
votes
1 answer
WinUI 3 - How to open a control in a page upon click of button from a User Control c#?
I have an ItemsRepeater on the page's XAML code where it's ItemsSource property is bind to a list of User Control (ObersvableCollection), a custom control I made. In this User Control there's a button that I wish would open a SplitView pane that I…

eduardobragaxz
- 3
- 1
- 3
0
votes
1 answer
How to implement gapless playback using MediaPlaybackList? (UWP, WinUI 3)
I am trying to implement gapless media player. I create a list of MediaPlaybackItem's and add them to an instance of MediaPlaybackList. The media playback items are created for files, uploaded on a server, using MediaSource.CreateFromUri().
So far…

Nick
- 4,787
- 2
- 18
- 24