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

Make a single TreeViewNode non-selectable

I'm trying to make the root TreeViewNode of my WinUI TreeView to act as a non-selectable "folder" for its selectable child nodes. However, the SelectionMode property is available only for the whole TreeView and not separate instances of…
Ivan Mir
  • 1,209
  • 1
  • 12
  • 32
0
votes
1 answer

WinUI Using Merged Dictionary from a DLL

I have this requirement where I need to access a resource dictionary defined in a DLL in my project as a merged dictionary. The whole project is setup as a C++/WinRT xaml hosted MFC application. And the required ResourceDictionary is a part of…
0
votes
1 answer

How to get bound property path for {x:Bind}

Using WPF I was able to get the path of a {Binding} bound property through the BindingExpression. In UWP is there a way to determine which property is bound using the {x:Bind} syntax? I need to discover which properties are bound to which…
Randall B
  • 81
  • 1
  • 6
0
votes
1 answer

How can I open xaml designer?

enter image description here enter image description here In this document, a user can open designer by right-clicking the xaml file, and choose View Designer. But, there is no command in the tooltip. How can I activate the designer? I use Blend for…
carnoxen
  • 15
  • 2
0
votes
2 answers

Developing C++ WinUI3 Desktop App with MVVM

I am looking at the WinUI3 framework with native C++ support for desktop applications.I cannot see any MVVM support as in C#. Should I expect it will be never supported and go i.e. with MVP with some code behind, or I am missing something?I cannot…
Stefano Piovesan
  • 1,185
  • 3
  • 19
  • 37
0
votes
0 answers

.NET 5, WinUI 3, and WinRT APIs available to Desktop Apps

I have two related questions. (1) Around 4/2019, Microsoft provided a list of APIs that can be called from packaged Desktop apps. (These are in addition to the API that have the DualApiPartition attribute). Has this changed with the November…
sjb-sjb
  • 1,112
  • 6
  • 14
0
votes
1 answer

Change foreground color of back button in UWP NavigationView

I try to change the foreground color of the back button in an UWP NavigationView. I managed to change all the other items in the side menu with this resources:
NPadrutt
  • 3,619
  • 5
  • 24
  • 60
0
votes
1 answer

Switch to windows desktop from uwp app using button click in UWP App

I am trying to switch users from Windows application screen to Windows desktop using a single button click(C#) in the UWP application. please help, I am not able to find any solution. Thanks
Avnish kumar
  • 68
  • 1
  • 7
0
votes
2 answers

Modify margins above a UWP TabView

I'm trying to modify the margin that exists above the tabs in a TabView control, see the little red arrow here: I think this margin is set here (its the matching amount of offset), but my attempts to modify this value via setters haven't been…
Siyh
  • 1,747
  • 1
  • 17
  • 24
0
votes
0 answers

Run cmd.exe as a admin to install the software's using c#

Technologies Used Langauage : C# Scripting : cmd.exe and commands Front End : WIN UI, Xaml Framework : .Net 5 I want to install bunch of 10 software's as a automated process from c#. Currently To install software I am using cmd.exe as a Process…
user2282005
  • 81
  • 1
  • 6
0
votes
1 answer

Blank application (C ++ / WinRT) does not appear when I want to create a new project?

I have installed visual 2019 the newest sdk and C ++ (v14x) Universal Windows Platform tools and I don't see the option to create Blank App (C ++ / WinRT). Anyone else has happened? How did you solve it? I have attached an image. Thanks for your…
punk code
  • 35
  • 10
0
votes
1 answer

UWP - CheckBox or Button is not visible

Using Jetbrains Rider Universal Windows Platform Problem The window is visible, but the buttons are not visible. Question How can I fix the problem? Source code using System; using System.Collections.Generic; using System.IO; using…
user14514228
0
votes
1 answer

namespace Microsoft vs namespace Windows

I am trying C++/WinRT and the WinUI templates available in VisualStudio. I am confused about namespaces ::winrt::Microsoft and ::winrt::Windows. I only know about the former one because auto-generated callback functions used a type from…
Aykhan Hagverdili
  • 28,141
  • 6
  • 41
  • 93
0
votes
1 answer

How can I prevent XAML VisualStates from interfering with Windows UI Composition animation?

I believe the Windows.UI.Composition tools are conflicting with the XAML VisualStates on buttons. GIF #1 When a button is in its Normal state, without the cursor hovering, the animations work and the buttons disappear successfully on scrolling down…
Mapplesoft
  • 297
  • 5
  • 13
0
votes
1 answer

Change NavigationView default pane background in cs code

I'm using Microsoft.UI.Xaml.Controls.NavigationView. For some reason, I have to change NavigationView's pane background. So I changed in XAML.
Vincent
  • 3,124
  • 3
  • 21
  • 40