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
10
votes
3 answers

How to get DispatcherQueue in WinUI 3 Desktop using Windows App SDK

In WPF all controls inherit DispatcherObject & its easy to get to the Dispatcher. How would I get the DispatcherQueue using WinUI 3 Windows App SDK and use it in a ViewModel? EDIT My implementation which expands on mm8's most appreciated…
tinmac
  • 2,357
  • 3
  • 25
  • 41
6
votes
1 answer

Difference between Windows App SDK and WinUI 3

I develop many UWP apps to Windows 10, but to Windows 11 I have so many questions and sometimes the Microsoft Docs it's confusing. I want develop new apps to Windows 11 but I am totally lost! What is the difference between Windows App SDK and WinUI…
Luís
  • 157
  • 2
  • 10
3
votes
2 answers

Unpackaged WinUI3 app crashes when calling Bootstrap.Initialize()

I have a WinUI3 app that I want to deploy as an unpackaged app, i.e. an app that does not use the MSIX packaging format. I followed the instructions given here: Instructions for unpackaged C# WinUI 3 apps and this is working well. I can start the…
Martin
  • 5,165
  • 1
  • 37
  • 50
2
votes
1 answer

Is Windows App Runtime backward compatible

I am working on a WinUI3 application for the desktop application in cpp. I am trying to build the application as a single executable(.exe). So I chose framework dependant unpackaged mode. When we chose a framework dependant unpackaged mode of…
Harshith
  • 181
  • 2
  • 9
2
votes
3 answers

Is it possible to publish an unpackaged Windows App SDK (WinUI 3) as self contained single file?

I'm pretty sure I have all the right flags and everything set according to Microsoft Docs, however the UI dlls are not being included in the single file exe.
2
votes
2 answers

Where is the Windows App Runtime for V1.1.2 (particularly the DDLM component), please?

NuGet delivered the Microsoft.WindowsAppSDK v1.1.2 yesterday (2022-07-02). My updated WinUI 3 programs now produce the following message when run: This application requires the Windows App Runtime Version 1.1 (MSIX package version >=…
aturnbul
  • 347
  • 2
  • 12
2
votes
1 answer

Caption Buttons do not work when content is extended into titlebar

I migrated my UWP Application to WinUI3 / AppSDK with a custom titlebar. I followed the example in the documentation here: https://learn.microsoft.com/en-us/windows/apps/develop/title-bar?tabs=winui3#title-bar-components Designwise it works. But now…
NPadrutt
  • 3,619
  • 5
  • 24
  • 60
2
votes
2 answers

Open app always in the center of the display - Windows 11 (WinUi 3)

I am develop a new app for Windows 11 with WinUi 3 and I want when I open the app always open in the center of my screen/display. It is possible? I am using PInvoke.User32 for set window size (if it helps). Thank you!
Luís
  • 157
  • 2
  • 10
2
votes
1 answer

WinUI XAML: Using a ResourceDictionary from another project

In my WinUI 3 application, I am trying to use a ResourceDictionary that is located in another project. Lets say the referenced project is ResourceTestLib and this library project has a folder "Styles" which has a file "_Thickness.xaml". In the…
Martin
  • 5,165
  • 1
  • 37
  • 50
1
vote
2 answers

How do I make CalendarView automatically scroll to today?

I'm using WinUI3/Windows App SDK 1.3 - XAML/C# My problem is that most UIs today have a de facto "Today" button on their calendar controls. In WASDK/WinUI, the control is called "CalendarView" and works great. Unfortunately, it does not have a…
1
vote
1 answer

Any way to retrieve winrt::Microsoft.UI.Xaml::Window from HWND, WindowId or AppWindow?

I created a window through CreateWindowEx in a WinUI 3 application, so I didn't have a Window object at first. Using the window handle, I'm able to get WindowId and thus AppWindow. However, I couldn't find any document on how to get Window other…
ACGMN
  • 9
  • 3
1
vote
1 answer

Error opening XAML page in designer in a WinUI 3 (Windows App SDK) project using VS2022 Pro

I have created a brand-new WinUI 3 / Windows App SDK project in VS2022 Pro using a Blank Project template. When I open MainWindow.xaml in design mode after successfully building the project I get the following error message: There doesn't seem to…
Caspian Canuck
  • 1,460
  • 1
  • 13
  • 19
1
vote
1 answer

WinUI3 : Customizing window title bar by removing Minimize and maximize button

I am working on the WinUI3 desktop application with C++. I discovered how windows significantly allow us to customize the title bar in this link. But it also said, it will reserve the Top Right/Top Left corner for the Min, Max, and Close buttons…
Harshith
  • 181
  • 2
  • 9
1
vote
1 answer

App crashes when setting Acrylic background | WinUI 3

I am making a WinUI 3 app in C++. I tried setting the backdrop of the window to acrylic but it does not work. It crashes with the exception "hresult_error" when calling AddSystemBackdropTarget. I could not find out why this is. Code: void…
Davide_24
  • 67
  • 7
1
vote
1 answer

Windows App SDK: SpeechSynthesizer takes forever to synthesize

As I described here: I have a method async SpeakAsync(string language, string text): var synth = new SpeechSynthesizer(); var player = new MediaPlayer(); SetVoice(language, ref synth); var source = await…
1
2 3 4 5 6 7 8