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
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

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

UWP XAML NavigationView - CornerRadius on Content Panel

I am new to XAML and I am implementing a NavigationView control in my UWP application. Some details: Visual Studio 2019 Microsoft.UI.Xaml version 2.6.2 (Nuget Package Installed) UWP Targets: Target: Universal Windows Target Version: Windows 10,…
3
votes
1 answer

SelectedItem selection lost when updating ItemsSource to the ItemsControl

I have a custom RibbonGallery control like in Excel, MSWord, and Outlook. Please refer the Excel RibbonGallery image below and Normal selection still exists. And I kept two ItemsSource, one for RibbonGallery View and one for Popup, and arranged…
Kanniyappan P
  • 281
  • 1
  • 6
3
votes
1 answer

How to fix TargetPlatformMinVersion problem in WPF app?

I'm trying to use Windows UI library in my WPF app, and whenever I install Microsoft.UI.Xaml I get the following error. Microsoft.UI.Xaml nuget package requires TargetPlatformMinVersion >= 10.0.15063.0 (current project is -1) How to resolve this…
Mahmudul Hasan
  • 798
  • 11
  • 35
2
votes
0 answers

Testing for equality with DependencyProperty.UnsetValue always fails

I have the following converter, which returns DependencyProperty.UnsetValue from its ConvertBack method: public class DictionaryValueConverter : IValueConverter { ... public object ConvertBack( object value, Type targetType, …
Abdessattar
  • 114
  • 5
2
votes
1 answer

Convert System.Drawing.Icon to Microsoft.UI.Xaml.ImageSource

There exist resolutions to convert System.Drawing.Icon to System.Media.ImageSource(Convert System.Drawing.Icon to System.Media.ImageSource). But when I used WinUI instead of WPF, this resolution seems to be unavailable. I need to convert…
Jack251970
  • 39
  • 2
2
votes
1 answer

Azure DevOps Build WinUI App Fails: Missing dll Microsoft.Build.AppxPackage

I'm trying to build our executable, which is working locally and is built and published in Visual Studio. Now we're trying to get it working the an Azure DevOps build pipeline and the publish task fails. The pipeline spec we're using is: variables: …
2
votes
1 answer

Dark System ContextMenu in Window

i am using winui 3 app, when i switch theme to Dark mode, system contextMenu (Right Click on Titlebar) is not updated to Dark, so i need to use [DllImport("uxtheme.dll", EntryPoint = "#135", SetLastError = true, CharSet = CharSet.Unicode)] private…
Chibako
  • 47
  • 4
2
votes
2 answers

Where can I find a list of all standard theme brushes when writing XAML?

Where can I find a visual list of all the standard theme brushes available to me in UWP/WinUI3 XAML? For example, the High Contrast themes documentation includes a visual list of all the colors, augmented with descriptions of their intended use. Is…
citelao
  • 4,898
  • 2
  • 22
  • 36
2
votes
0 answers

MSIX packages on Windows Sandbox?

I'm trying to work out how to package a WinUI desktop application in MSIX. We don't want to upload to Windows Store or anything, just to be able to give people an installer (much like a .msi file), and have them install that for themselves on their…
2
votes
1 answer

How can I remove the close button in WinUI 3?

How can I remove the close button in WinUI 3? Screenshot of WinUI 3 App
2
votes
1 answer

How to get parameters of a URI deep link into a Maui Application?

I am want to create a deep link like some-app://localhost?user=123455 that when clicked opens a Maui WinUI app. When the app receives this deep link I want to be able to get the user ID off of the deep link. I was able to do this in Xamarin, but…
2
votes
1 answer

How to keep StackPanel up, when resizing window?

I would like that when I minimize the window, the StackPanel stays on its position (Stay on top, don't go under) while the window is minimized. I'm not looking for a direct answer, I just want to find some direction, some help on where to…
user19379522
1
2
3
24 25