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
-1
votes
2 answers

How can I execute code when the application exits?

I try to flush the log on applcation exit. Here is my try, but CoreApplicationExiting is never called: public partial class App : Application { public App() { Serilog.Log.Logger = new LoggerConfiguration() …
brainer33
  • 19
  • 5
-1
votes
2 answers

How to migrate my WPF application to linux based application through UNO Platform?

I want to port my existing WPF application to the Uno Platform for the Linux operating system. What are the step-by-step processes I need to follow for this? Which APIs are incompatible, and how can I resolve these issues? Which parts of the code…
-1
votes
2 answers

WinUI 3 ListView Linked To Observablecollection contains Canvases

I am developing a WinUI 3 application which contains a ListView linked to an Observablecollection which contains canvases , the listview displays the names of the canvases via a DataTemplate but the names are not displayed
-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

RadioButton Pointed over background color not working in dark mode

This gif shows that the background of the ellipse does not change color with the pointed over event (WinUi2 Xaml Controls Gallery) The control behaves correctly in Xaml Controls Gallery WinUI 3 (see below): I tried modifying the Theme resources…
Blondie
  • 9
  • 2
-1
votes
1 answer

Window.Current.Content is getting null in winui3

Window.Current.Content is getting null in winui3 Gettting exception object reference not set to an instance I am implementing Ishitestvisible Any suggestions?
-1
votes
2 answers

WinUI 3.0 ListView crashes when selecting newly added item. Attempted to read or write protected memory

I am writing a WinUI 3.0 app and the ListView Binding works, when I add items to my Collections, they appear in the ListView, but when I want to click on a newly added item I get an Exception: Attempted to read or write protected memory. I suspect a…
-1
votes
1 answer

How to get ProgressRing from ListViewItem?

i have a ListView with following ItemTemplate
karma
  • 147
  • 7
-1
votes
1 answer

TextBox/NumberBox Filtering WINUI3

Is it possible to implement an TextBox/NumberBox that filters and only accepts numeric values in real time just like what a NumberBox normaly does but not just when the user completes the input and if so how can I do it?
David Simões
  • 303
  • 4
  • 11
-1
votes
2 answers

System.Runtime.InteropServices.COMException on MessageDialog WINUI3

When I try to invoke an MessageDialog my app crashes with the following error message: System.Runtime.InteropServices.COMException: 'Invalid Window Identifier. (0x80070578)' This occurs both on the App.xaml.xs and in an helper I have for that…
David Simões
  • 303
  • 4
  • 11
-1
votes
1 answer

Why is Header bigger than Title, when to use each?

Header styles are bigger than title styles in the Window type ramp, which is opposite of common use in PDFs, Microsoft Word, and print. Why are these styles seemingly swapped, and in what scenarios did the designers intend us to use…
Vimes
  • 10,577
  • 17
  • 66
  • 86
-2
votes
2 answers

Mouse Events not Triggering on User Control

I'm working on a WinUI 3 app, and I've made a user control and I've been trying to get the left and right clicks to do some things. For some reason, my component doesn't pick up on the events like the rest of my components. Here's my XAML…
Borisonekenobi
  • 469
  • 4
  • 15
-2
votes
1 answer

How to change the foreground display point to long bar? ProgressBar

The Official UWP ProgressBar Control:https://learn.microsoft.com/zh-cn/windows/apps/design/controls/progress-controls Demo show : But what I get is like this: How can I change it?
-2
votes
1 answer

I'm trying to go to another page when clicking a button. How could i do this (WinUI 3)

I'm trying to go to another page when clicking a button. How could i do this. I tried using a NavigationViewItem but it didn't work.
Marcelsky
  • 55
  • 1
  • 6
1 2 3
24
25