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

UWP: Settings buttons to IsEnabled = false triggers a tab-change in the NavigationView

I have a UWP app with a WinUI2.4 NavigationView on my MainPage. There are three pages that are placed in the frame of the navigationview. The second tab navigates to a Page with 3 buttons with a Click-event.
0
votes
1 answer

Two Pane View control not working as expected

According to the Microsoft documentation, it states the following for the Two Pane View: By default, Pane1Length is set to Auto and it sizes itself to fit its content. Pane2Length is set to * and it uses all the remaining space. With the following…
Maximus
  • 1,441
  • 14
  • 38
0
votes
3 answers

UWP C# WINUI NavigationView How to access other pages/views

I am writing an app using navigation view basing on Using the NavigationView in your UWP applications tutorial. I hope someone can help to clarify 2 things what is the best practice to place my general routines? in the MainPage.xaml.cs or the xaml…
mylim
  • 313
  • 4
  • 16
0
votes
1 answer

Cannot access XAML element from C++ code. WinUI 3 (WinUI project templates)

I am learning with some small projects and I don't know, how to access XAML element from C++ code. Can you help me please? It says "cannot determine which instance of overloaded function is intended", screenshot:…
Bluekas
  • 1
  • 1
0
votes
1 answer

WinUI 3.0 for desktop apps default project gives runtime error

Using Windows UI Library 3 Preview 2 (July 2020) that was released just yesterday. On latest version of VS2019 - Preview, followed this official tutorial Get started with WinUI 3 for desktop apps to create a desktop project. Project successfully…
nam
  • 21,967
  • 37
  • 158
  • 332
0
votes
1 answer

Place the Content Text at the center inside the teaching tip

I am using the teaching tip control from WinUi 2.4 in UWP,I want to place the content at the center of the teaching tip.But I anm not able to place the content at the center.I am not providing any title,subtitle.Please find the attached image.Can I…
0
votes
1 answer

How can I find out whether you are using WinUI 2 or WinUI 3?

Currently, I try to learn how to use UWP UI component, in WPF application. I'm following the examples in https://github.com/rvinothrajendran/XamlIslands However, may I know, how can I find out, whether the example is using WinUI 2, or WinUI…
Cheok Yan Cheng
  • 47,586
  • 132
  • 466
  • 875
0
votes
1 answer

OnLoaded event calling again in UWP

I'm working with UWP with WinUI 2.5 prerelease and have noticed a strange behavior which doesn't happen in WPF. So i'm using a TabView control and loading a Page in it. Every time a new tab is created, a new page is loaded in it (nothing…
Hammas
  • 1,126
  • 1
  • 12
  • 37
0
votes
1 answer

How to create an app-wide keyboard shortcut in a UWP app that supersedes any keydown handlers that children XAML elements have?

For example: a uwp pivot automatically handles Ctrl+Tab. I want to create a custom app-wide keyboard shortcut that uses Ctrl+Tab. However, if my app is currently focused on a pivot control, then the pivot steals the shortcut keydown event. What I…
Daniel
  • 126
  • 1
  • 8
0
votes
1 answer

How to structure my project to use x:Bind

After beeing used to structure my project in WPF on a light MVVM pattern, I'm looking into WINUI for a new project. In the elapsed time, UWP and x:Bind did appear and it looks like the pattern can be much lighter. The whole concept of ViewModel has…
Technos
  • 13
  • 4
0
votes
0 answers

Customizing Style of WinUI ProgressRing Not Available on WASM with Uno 2.4

I know globally modifying theme colors with template binding way not supported in Uno yet. (I tried it for ToggleSwitch, now ToggleSwitch custom style runs perfectly both on UWP and WASM). So, I prepared a custom style for WinUI 2.4 ProgressRing in…
berkb
  • 542
  • 6
  • 21
0
votes
1 answer

How to bring an element inside a list view item to the front of the entire app?

Using UWP XAML, I am trying to recreate this textbox UX from Postman whereby it pops up above all other elements in the app to display the full text: https://streamable.com/avrixo. I've almost fully recreated this UX, but I am having trouble…
Daniel
  • 126
  • 1
  • 8
0
votes
1 answer

What do I need to do in my view to make Prism.Uno work with x:Bind?

I come from a WPF / Prism background but I really like what X:Bind offers. How do I get x:Bind to work with my ViewModel when using Prism.Uno? I have prism:ViewModelLocator.AutoWireViewModel="True" but I seem to be missing something in my…
George Bamber
  • 25
  • 2
  • 2
0
votes
1 answer

Add WinUI control to UWP Application

I am trying to use new WinUI toolkit TreeView/TeachingTip/... control to my UWP Application. I have added the references Microsoft.UI.Xaml from Nudget packages.
0
votes
2 answers

Telerik WinUI GridView uses formating for wrong cell if scrolled

I used the Grid in the Telerik samples for WinUI C:\Program Files (x86)\Telerik\UI for WinForms Q1 2015\Examples\QuickStart\GridView\Rows\AddNewRow\Form1.cs and added the following code to get the UnitPrice in a blue font: public Form1() { …
Mathias F
  • 15,906
  • 22
  • 89
  • 159
1 2 3
24
25