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

Cannot see XAML live visual tree

Before reporting to Microsoft I want to ask here. I have a problem that I cannot see Live Visual Tree of my WinUI 3 application. I cannot even see the in-app toolbar. I can see both in WPF and UWP application, no problems. I have these options for…
benderto
  • 896
  • 11
  • 39
3
votes
0 answers

How do I login with Google OAuth Through a Desktop App?

Currently I am building a desktop app using WinUI3 and C#. I have noticed other apps that do this but I can't figure out how they are doing it. Example would be a button that says "Login with Google" on the desktop app. Clicking that button opens a…
G_Man
  • 1,323
  • 2
  • 21
  • 33
3
votes
1 answer

How to get the parent of an object in WinUI3 with C++/WinRT?

This is how the xaml looks like:
Claudiu HBann
  • 56
  • 1
  • 9
3
votes
1 answer

InfoBar FontSize cannot be changed

No changes occur when you try to change the font size of the Message property of the InfoBar class with the FontSize property. Problem Font size has not changed Source Code
3
votes
1 answer

Binding in a Style Setter in WinUI 3

Does WinUI 3 support binding in a Style Setter? I've defined a Style for a NavigationView and the third line is: This produces a Specified cast is not valid.…
aturnbul
  • 347
  • 2
  • 12
3
votes
0 answers

Win32 control not showing up in Winui3

I want a Winui3 window, to host a Win32 control, I tried the following: App.xaml.cs: protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs args) { m_window = new MainWindow(); var hwnd =…
FrozenAssassine
  • 1,392
  • 1
  • 7
  • 16
3
votes
2 answers

All local variables show "Cannot obtain value of the local variable or argument (...)" in a WinUI 3 project using VS 2022

After setting break points and trying to step through the values of variables in a WinUI 3 project, I'm getting the following: Cannot obtain value of the local variable or argument because it is not available at this instruction pointer, possibly…
3
votes
2 answers

Do WinUI applications need runFullTrust to publish to the Windows Store?

I recently took a stock WinUI template, added my old UWP C# code, recompiled and tried to publish. The Windows Store Application Submission warns me that I shouldn't use the runFullTrust setting: We detected the use of one or more restricted…
Quark Soup
  • 4,272
  • 3
  • 42
  • 74
3
votes
0 answers

How to create a new Window in a new Thread with WinUI3 C++ unpackaged app?

I didn't found any documentation about this in C++. I used to use winrt::Windows::ApplicationModel::Core::CoreApplication::CreateNewView(); to create a new view in UWP. But now, I don't know how to do: co_await…
Yonghui
  • 222
  • 3
  • 16
3
votes
1 answer

Unable to load the manifest designer, PhonePublisherId is missing

After associating with Microsoft Store, when I open the Manifest, it doesn't open. and shows this error. What doest it mean? How to correct this? I have never encountered such an error with UWP apps, while opening the manifest. It's weird. I am…
Mg Bhadurudeen
  • 1,140
  • 1
  • 12
  • 24
3
votes
1 answer

WinUI 3 UWP - Dialog

I am develop a new app for Windows 11 in WinUI3 UWP, and I want show a dialog to provide a safe action like in this example of Microsoft Docs: https://learn.microsoft.com/en-us/windows/apps/design/controls/dialogs-and-flyouts/dialogs private async…
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
3
votes
1 answer

How to determine if my library is running from WinUI3 Win32 app?

My library should have different behaviour depending on app platform. As I know, I can determine that app is UWP-application using this code. But it returns true even for WinUI3 Win32 app. As there any way to determine that app is WinUI3 Win32 app…
okolobaxa
  • 338
  • 1
  • 4
  • 16
3
votes
1 answer

How do I change the default font of my WinUI application?

I couldn't find any guidance on Microsoft websites or on the winui github. I'm working on a WinUI 3 application, and have previously worked on WPF. I tried setting a default FontFamily for my application at the highest level using WPF…
Tam Bui
  • 2,940
  • 2
  • 18
  • 27
3
votes
2 answers

Can I use Prism for WinUI 3 apps?

I'd like to use Prism in a WinUI 3 app, and I saw the Prism v8.1 release. Additionally Prism 8.1 offers a new Prism.Uno.WInUI platform target for those wishing to build either native WinUI3, or Cross Platform WinUI 3 apps with Uno Platform. I'm…
JamesL
  • 351
  • 2
  • 10