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
-1
votes
1 answer

I can't delete a TabView tab when it is selected in WinUI 3

I am writing an app using C++/winrt, on Windows 11, and using the new WinUI 3.0. The app has a TabView control, and each tab represents a document. The TabView control works well, but when you try to delete the tab that is selected... the program…
Andrew
  • 174
  • 1
  • 6
-1
votes
1 answer

App Icon not Shown in Title Bar in UWP für WinUI 3 / Uno

I'm developing an UWP App with UNO / WinUI 3. I have put images into the Images folder in the UWP project and the application icon is shown in the taskbar as well as application icon at the exe-file. But unfortunately the App Icon is not shown in…
Tom
  • 89
  • 6
-1
votes
1 answer

WinUI3 Window -> ShowDialog

I am trying to show the window as ShowDialog (same as WPF) in the WinUI3, but found that the currenly present method window.Activate() does not behave the same as ShowDialog(). 1.) Is there any way to acheieve this in WinUI3, to show window as…
Naveen Badal
  • 13
  • 1
  • 5
-1
votes
1 answer

How can I make a layout that looks like what I want?

I am working on WinUI3 and the code below shows the image.
-1
votes
1 answer

How to create a UserControl based on another UserControl?

I created a UserControl called fooControl. I would like to create another UserControl called fooControlExtended to reuse/add/override both the C# and XAML code that already exists in the base UserControl fooControl.
-1
votes
1 answer

C++/WinRT WinUI3: How to show a ContentDialog before I close the MainWindow?

I'm trying to show a ContentDialog to make sure the user confirm close when they choose the close button of window. But in WinUI3, I cannot find CloseRequested Event. I trid to use AppWindow and Hwnd Interop and AppWindow.Closing, but it didn't…
-1
votes
1 answer

How to build a winui control library?

I want to make some custom user controls and share them in different applications. But I could find a project template or example to help do it. There is a project template such as "WPF User Control Library" for WPF app, however I found no template…
fuqi
  • 1
  • 1
-1
votes
1 answer

How to disable button but force children to be enabled?

I am trying to figure out how I can set the "IsEnabled" property to false on a Button but then have the children (in my case a Combobox) be enabled. It seems the children inherit the property value from the parent element (in this case the disabled…
-1
votes
1 answer

How to bind a datatype to a control in WinUI 3?

I have a datatype (model) I would like to display the data for in my UI by showing several properties using data binding.. It works in a GridView or ListView, but how do I do this when I only want a single model bound instead of a collection? To do…
-1
votes
1 answer

WinUI 3 crash issue when Progress Ring Initiliazes in Visual Studio 2022

Edit 3: Complete project if anybody wants to check https://github.com/sumnoon/ProgressRingSample_WinUI3 Edit 2: Added Complete code Edit: Added the code I am trying to use as sample I am trying to add progress ring in WinUI 3 sample app. The plan is…
Sumnoon
  • 71
  • 7
-1
votes
1 answer

How to get the compositor instance while handling XamlCompositionBrushBase.OnConnected in a WinUI-3 desktop app

Following this c++ example i'm trying to create a custom brush in a WinUI 3 desktop application but i cannot find out how to get a compositor instance from within the OnConnected Method. The example…
ridilculous
  • 624
  • 3
  • 16
-1
votes
1 answer

Use STA function from MTA in WinUI3

My application need to use some COM objects in MTA (COM object will use UI element), so I defined my app as MTA: [global::System.MTAThreadAttribute] static void Main(string[] args) { XamlCheckProcessRequirements(); …
Hoka Biu
  • 27
  • 6
-1
votes
1 answer

How do you access generic host services from a library?

I have a Win UI3 project which declares a generic host in the main app which is used for dependency injection, etc. The main application will support many different document types, to keep it more manageable I'd like to separate the code and UI…
Russ_S
  • 1
  • 1
-1
votes
1 answer

System.Timers.Timer stutters

In my WinUI 3.0 app I have a stopwatch that counts up every second. Often, but not always, it stutters while counting up. For example, the timer will stay at 0:00:04 for longer than a second, then jump to 0:00:06. Is there something I am doing…
Ricky Kresslein
  • 372
  • 1
  • 13
-1
votes
1 answer

How can I get the Tag value from a XAML UI Control without knowing the precise Control type beforehand?

I need to get the Tag value of a default XAML control without knowing it's precise type. I have tried casting to UIElement, which although works for most standard properties, doesn't seem to work for the Tag property. if (control is UIElement e) { …
Andrew
  • 171
  • 1
  • 7
1 2 3
76
77