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

DoubleTapped event for ListView items in UWP

I want to be able to double tap on listview items. i used DoubleTapped event but when i double tap on listview (not items) event is fire, i only want to work with items (not listview itself (panels, borders,...)), in wpf we can simply do this by…
karma
  • 147
  • 7
0
votes
1 answer

WinUI 3 (0.8.1), C++/WinRT (2.0.210714.1), Desktop - Using "BindingOperations::SetBinding(...)

I'm binding a ListBox in Xaml to a NetworkViewModel instance, which holds a collection of NodeViewModel instances. A NodeViewModel instance shall be displayed on a canvas in X and Y positions, which are provided by the NodeViewModel. I want to bind…
Alfred
  • 1
  • 1
0
votes
1 answer

NavigationViewItem is not centered

I want to make a navigation view like Microsoft Store. So far I have done this. But there is two problem. The icon and the text is not centered. The selection indicator is very small. How can I solve this problem. Here is my…
Sayan Paul
  • 77
  • 2
  • 4
0
votes
2 answers

UWP like desktop application

I'm doing an application that target Windows 10 (maybe 11). My first choice was WinUI 3. But I realized that there are things that are not completely implemented and some controls are not stable yet (datagrid for exemple). So I tried UWP and WinUI…
droyer
  • 71
  • 2
  • 7
0
votes
1 answer

Stop UWP ListView from scrolling to top when updating ObservableCollection

When I update my ObservableCollection which is bound to my ListView it automatically scrolls to the top. My code that gets the data currently looks like this with records being the ObsevableCollection: public async Task getData() { …
Thilo Jaeggi
  • 87
  • 1
  • 9
0
votes
2 answers

WinUI list control that allows for dynamic item size, reordering, and virtualization

I am trying to implement a document editor similar to Notion or Craft but in a WinUI/UWP application. Instead of using a "single-field" editor (like MS Word has), these apps show a vertical stack of content rows (so-called "blocks") that can contain…
0
votes
0 answers

Close a MessageDialog Programmaticaly in WinUI3

I've ported my app from .NET Core to WinUI .NET5 and now my message dialogs dont desapear when a button is clicked. How can I solve that?
David Simões
  • 303
  • 4
  • 11
0
votes
1 answer

How do I wrap a ContentDialog in a custom Control?

I'm trying to make a re-usable WinUI dialog to display progress information, but I want the fact that I'm using a ContentDialog to be an implementation detail and not expose its API. I figured I could do this by deriving from Control and creating a…
David Brown
  • 35,411
  • 11
  • 83
  • 132
0
votes
0 answers

Using complex paths for CompositionClip

Visuals in UWP/WinUI can have a Clip applied to them which is an instance of a CompositionClip. One of the types of CompositionClip is a GeometricClip which can have a Geometry of various types derived from the CompositionGeometry class. I'm seeking…
Zoso
  • 3,273
  • 1
  • 16
  • 27
0
votes
1 answer

Different corner radii for a Visual's clip

I was trying to set the Clip on a Visual. The path is supposed to be a rounded rectangle with different corner radii. The current API for setting the CornerRadius on a RoundedRectangleGeometry allows setting a uniform radius on all the four…
Zoso
  • 3,273
  • 1
  • 16
  • 27
0
votes
1 answer

UWP NavigationView BackButton Not work properly

I have set the ExtendViewIntoTitleBar property for my page and IsTitleBarAutoPaddingEnabled="False" for my NavigationView But now I can not easily click the back button (mouse cant hover back button) Please see the image below and this is microsoft…
git test
  • 408
  • 1
  • 5
  • 11
0
votes
1 answer

How to Change Application Theme in UWP and WinUi

I want to change my UWP (winui 2.5) App theme, I used the following code private void OnThemeRadioButtonChecked(object sender, RoutedEventArgs e) { var selectedTheme = ((RadioButton)sender)?.Tag?.ToString(); …
git test
  • 408
  • 1
  • 5
  • 11
0
votes
1 answer

How to add staggered item entrance animation to WinUI ItemsRepeater?

ItemsControl has an ItemContainerTransitions property that supports . I want to move to ItemsRepeater for its improved performance with large lists. But ItemsRepeater doesn't seem to provide any…
Daniel
  • 126
  • 1
  • 8
0
votes
1 answer

Open previous TabViewItems after page navigation of NavigationView class

I want to save the opened TabViewItems dynamically, so that the user can switch to another page and return to his work, for example. Problem:
user15812643
0
votes
1 answer

UWP | TabView class not recognizable from IDE

for some reason the XAML source code (see below) is not discoverable by the Integrated Development Environment (IDE).
user15771386