Questions tagged [winui-3]

The Windows UI Library (WinUI) is a native user experience (UX) framework for both Windows Desktop and UWP applications. WinUI 3 is the next version of WinUI, a native Windows 10 UI platform completely decoupled from the Windows 10 SDK. This tag should be used with questions concerning using the features and functionality of WinUI 3.x. Add the appropriate tag for the programming language you are using as well (c++-winrt, C# or Rust).

WinUI 3 is the native UI platform component that ships with the Windows App SDK previously known as Project Reunion.

1154 questions
31
votes
1 answer

Is WPF getting outdated with arrival of WinUI-3?

Is WPF getting outdated with arrival of WinUI-3? When it comes to Desktop Application development, Is it about time to migrate to WinUI-3 completely leaving behind WinForm/WPF legacy ??
jrk007
  • 375
  • 1
  • 3
  • 9
18
votes
6 answers

MAUI how to remove the Title Bar and fix the window size?

How can I remove the Title Bar in MAUI and fix the window size as 800x400 pixels in the Windows version of the application? full size I searched for a very long time in the Internet, but I found already not actual information for later versions of…
15
votes
5 answers

`Microsoft.ui.xaml.dll` is unable to load

I am getting an exception in my WinUI3 app that Microsoft.ui.xaml.dll is unable to load. I have included Microsoft.UI.Xaml and Microsoft.Graphics.Win2D in nuget. System.DllNotFoundException HResult=0x80131524 Message=Unable to load DLL…
BAR
  • 15,909
  • 27
  • 97
  • 185
14
votes
2 answers

Where is WinUI3 in Visual Studio 2022?

I am unable to find Microsoft's new development platform WinUI3 in visual studio. Should I install any components or something bug in my VS?
Mg Bhadurudeen
  • 1,140
  • 1
  • 12
  • 24
12
votes
1 answer

Where is the designer view in WinUI 3?

I was developing uwp apps for the past few years, now moving to winui3. It is my first project. I am unable to find the designer view for the XAML files. Is it not available in WinUI3? or something else?
Mg Bhadurudeen
  • 1,140
  • 1
  • 12
  • 24
12
votes
5 answers

"The project doesn't know hot to run the profile MauiApp.WinUI"

I am trying to get started with a brand new .NET Maui application. Upon creating the project, it has a single project for the MauiApp, and another project named MauiApp.WinUI. When I try to run the the app on my Windows 10 device, I get the error:…
Mampinator
  • 117
  • 1
  • 11
11
votes
4 answers

WINUI 3.0 - Reunion 0.5 window size///

I just start learning WinUI 3.0 and can't find any information in google or books like Learn WinUI 3.0 how to set default window size of application. I know in UWP it can be like ApplicationView.PreferredLaunchViewSize = new Size(480,…
whome
  • 121
  • 1
  • 4
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
10
votes
2 answers

How to get screen bounds for WinUI 3 Desktop application?

I need to achieve below requirements in WinUI 3 Desktop applications. How to get screen bounds? How to change windows cursor type in runtime? I already did this in WinUI UWP applications. For Screen bounds, var visibleBounds =…
Kanniyappan P
  • 281
  • 1
  • 6
8
votes
3 answers

WinUI 3.0 Desktop - C# Page Navigation

I am trying to do a simple page navigation but I am unable to find any documentation on how to do so in WinUI 3.0. Currently, when I create a Blank App using WinUI 3.0, I get the following code created in App.xaml.cs protected override void…
Tikki
  • 179
  • 1
  • 10
7
votes
1 answer

For Dotnet Maui, what the difference between Application.Current?.Dispatcher.Dispatch(async()) and MainThread.InvokeOnMainThreadAsync

Title says it all, docs don't seem to say which should be preferred. They have the same arguments you can pass basically…
ShadyHippo
  • 71
  • 2
  • 3
7
votes
1 answer

Can I use existing WinUI3 controls in MAUI project?

Is it possible to use the exisiting controls of WinUI 3 in the MAUI project? Like controls in https://github.com/microsoft/WinUI-Gallery I installed the WinUI package to my MAUI project
Fruio Nik
  • 71
  • 5
7
votes
4 answers

How to open WinUI Maui through URI Activation?

I've created a Maui windows application. I'm looking to activate the application through a URI and pass query parameters to the app. I've added the windows protocol for calling the app via uri in the package manifest:
7
votes
1 answer

How to retrieve the window handle of the current WinUI 3 MainWindow from a page in a frame in a NavigationView control on the MainWindow

I am creating my first WinUI 3 desktop application. I have a NavigationView on my MainWindow. I have 9 different pages that I navigate to via the frame in the NavigationView. One of the pages is for printing reports. I need to get the FileSavePicker…
LennyL
  • 225
  • 3
  • 9
7
votes
3 answers

TrayIcon with WinUI 3

I am trying to make a program that runs in the background, and I want to place a Tray Icon in the Tray Icon Section of Windows. I didn't find a solution to do this without using Windows Forms (which is not Possible in .Net 6) Is there any other…
JannisDev
  • 127
  • 1
  • 6
1
2 3
76 77