Questions tagged [winui]

WinUI v2.x is a set of technologies from Microsoft that allows UWP developers to add a high-performance set of base controls to their projects. The upcoming WinUI v3 will be replacing the entire UI stack (down to the rendering layer) for all Microsoft desktop development platforms including WPF, UWP, Windows Forms and Win32.

WinUI is the modern native UI platform of Windows. It currently comes in two flavours (2.x & 3.x). Versions 3.x will arrive in March 2021 with Project Reunion 0.5.

While version 2.x adds XAML enhancements and controls to UWP application s, the upcoming Version 3 will be delivering an entirely new UI stack rewrite in high-performance C++ making WinUI available for all types of Windows applications – from Win32 to UWP – for use as the UI layer. More information can be found on the Microsoft site here: Microsoft WinUI

375 questions
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
6
votes
1 answer

Content Dialog not showing up WINUI3

I'm trying to show a popup to edit a brand in my app but it doesn't show up. Function where I call the Dialog: private async Task EditBrandAsync(Brand brand) { var dialog = new ContentDialogs.EditBrandDialog(brand); await…
David Simões
  • 303
  • 4
  • 11
6
votes
1 answer

System.ArgumentException: 'Value does not fall within the expected range.' on Content Dialog

I'm triyng to make a login system in my UWP (WinUI3) app and when I try to lauch de Login Content Dialog it crashes throwing this error: System.ArgumentException: 'Value does not fall within the expected range.' on await…
David Simões
  • 303
  • 4
  • 11
6
votes
2 answers

The tag 'XamlControlsResources' does not exist in XML namespace 'using:Microsoft.UI.Xaml.Controls'

I was trying to use WinUI so I installed the plugin Microsoft.UI.Xaml (2.4.2) from Nuget and followed the instructions which says add This to my App.Xaml and here is my App.Xaml…
Zana Masoud
  • 95
  • 1
  • 10
6
votes
0 answers

Guides for using WinUI with C++

I'll try to summarize my issue as concisely as I can: I have a legacy C++ project that uses WinAPI to create and manage UI elements. I want to replace this with a more modern framework that supports OOP and has some kind of visual designer. I…
yah_nosh
  • 155
  • 1
  • 8
5
votes
1 answer

How can I add a minimum size in WinUI 3?

How can I set a minimum size for the window in WinUI 3? Problem
user19414975
5
votes
1 answer

How do I get a WinUI Control's parent Window?

I need to get a reference to the parent Microsoft.UI.Xaml.Window for a Control. Is there a way to do that in Project Reunion 0.5? Window.Current does not work in a desktop app.
David Brown
  • 35,411
  • 11
  • 83
  • 132
5
votes
1 answer

Derive from IconElement or IconSourceElement in UWP

I'm trying to create the same custom symbol icon control as MS SymbolIcon, which will get the enum symbol values as input, and the equivalent path data value will be retrieved from the dictionary collection. But the symbol icon class…
Kanniyappan P
  • 281
  • 1
  • 6
5
votes
2 answers

UWP/WinUI desktop app access to Azure Key Vault secrets

Microsoft provides several ways to gain secure access to Azure Key Vault secrets, particularly using Managed Identity or Service Principals as identity providers. However, these methods are explicitly designed to work with Azure-based resources such…
FactoryOptimizr
  • 306
  • 3
  • 13
5
votes
3 answers

.NET Core 3 using WinUI

With .NET Core 3 in preview, it is possible to create a WinForms or WPF "desktop application" on the .NET Core platform. Using XAML islands, it is possible to host UWP controls in a WPF application. Does .NET Core 3 and up directly support the WinUI…
mathias
  • 105
  • 1
  • 4
4
votes
2 answers

How can I add desktop notifications with WinUI 3?

Does WinUI 3 have the feature to add desktop notifications? See reference (see below)
4
votes
0 answers

WinUI integration with COM / WinForm / WPF controls

I was wondering if there is any way to embed ActiveX components (created as a WPF / Winforms Control) into WinUI. I have the opportunity build an app from scratch and there is just one critical functionality that has this dependency. I created a…
Dhiru
  • 159
  • 2
  • 5
3
votes
1 answer

Error NETSDK1152 on WinUI3 App: Found multiple publish output files with the same relative path: Microsoft.Web.WebView2.Core.dll

Installed Visual Studio 2022 (on a clean/fresh Windows 11 installation), installed Template Studio for WinUI (v5.3). Created a Project using Template Studio with these Settings: - Project type: Navigation pane - Design pattern: MVVM…
3
votes
2 answers

URI start of MAUI Windows app creates a new instance. I need to have only one instance of app

I am able to start my Windows MAUI app using an URI, and I can get the URI itself. But, it appears that a NEW instance of the app is being created. This is not ideal for me -- if my app is already running, I want to use that instance. I have done…
bobwki
  • 794
  • 6
  • 22
3
votes
1 answer

WinUI 3 Can't properly change the background colour of the titlebar

My aim is to make the background colour of the title bar and the content inside the app to be the same colour, but that is not working. I wanted to make everything of this colour #FF2B2B2B, the problem is while the content of the app is of the…
uhlw32n2
  • 33
  • 3
1
2 3
24 25