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

How do I access Window Resources in WinUI 3

I've just started working on a WinUi 3 (Desktop) project and have got blocked trying to add Window resources to a Window. I would have thought the following would work. However there appears to be no Resources property.
Mark
  • 173
  • 2
  • 6
6
votes
1 answer

WinUI 3 COMException Error when updating TextBlock Text in a timer function

I'm trying to update the Text of a TextBlock every time a timer fires. Here is my code: public static DateTime startTime; System.Timers.Timer timer = new System.Timers.Timer(1000); timer.AutoReset = true; timer.Elapsed +=…
Ricky Kresslein
  • 372
  • 1
  • 13
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
6
votes
0 answers

WinUI3 create installer with external msi

I'm trying to create an installer for an Winui3 app and add to it an external msi file. So far I've tried Wix toolset and Microsoft Visual Studio Installer Projects but both create an msi file containing an exe that doesn't work. The only way that I…
alina
  • 61
  • 1
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
5
votes
2 answers

Can I use VSCode for developing WINDOW DESKTOP Apps using WinUI 3 or MAUI or UNO stack?

For the last few weeks I am trying to set up a project in VSCode to be able to build & run the windows desktop app. I understand that for WinUI 3 projects Visual Studio 2022 is recommended but most of the people in the team are using VSCode for all…
to-mars
  • 101
  • 7
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 deploy a WinUI 3 desktop application in a managed environment? Has anyone done it successfully?

I cannot figure this out. I just want to publish/deploy a hello world simple WinUI 3 app. Before I publish my real app (I tried to publish my full app, but I thought maybe there was something wrong with it, so I created a very small test app, just…
LennyL
  • 225
  • 3
  • 9
5
votes
1 answer

How do I make a WinUI 3 GUI in code without XAML?

I'm porting a programming language to Windows that has commands like "create a window" and "create a pushbutton in that window". The programming language itself is implemented in C++. I hear the newest, recommended UI API on Windows going forward is…
uliwitness
  • 8,532
  • 36
  • 58
5
votes
2 answers

MSTest v2 won't run with net5.0-windows

I am trying to create a MSTest project for unit testing of our WinUI 3 development. I am able to run tests through the test explorer when targeting .NET 5.0. Project Reunion requires net5.0-windows10.0.19041 as the target framework. When I try to…
JJenkins
  • 81
  • 6
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
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
1 answer

How to fix a packaged WinUI3 app build, what makes trouble with ProcessorArchitecture?

Today i'm trying to build a .NET 6 WinUI3 App in AzureDevOps. My csproj…
Sascha Manns
  • 2,331
  • 2
  • 14
  • 21
1
2
3
76 77