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

How to implement acrylic windows effect in WinUI3 in desktop application?

When creating WinUI 3 (Windows App SDK 1.0) project with VS 2022, I am unable to implement the acrylic background effect on Windows. I have done a lot of research and seen samples but unfortunately could not find reliable resources to implement…
2
votes
0 answers

How to use Prism MVVM in WinUI 3 Desktop

I am new to WinUI 3 and PRISM Library. Do we have PRISM Library support in WinUI 3? If the answer is Yes, which is the the library? After doing initial search... I saw Prism.Uno is supporting WinUI 3. Is my understanding correct? To try a sample, I…
2
votes
1 answer

Configure httpClient in WIn UI

How to configure http client in App.xaml.cs or in any other file for my entire WinUI 3 application like we do in a dotnet core startup.cs file? I don't want to create multiple instances of http client. App.xaml.cs namespace MyNameSpace { ///…
2
votes
2 answers

x:Bind ViewModel RelayCommand to a command inside DataTemplate

I'm trying to bind a IAsyncRelayCommand (MVVM Toolkit) from my view model using x:Bind within a DataTemplate. This is my view model: public class BuildingViewModel : ObservableObject { public ObservableCollection
Brecons
  • 215
  • 3
  • 12
2
votes
2 answers

WinUI 3 UWP TabView NOT displaying New Tab when a new Item is added to the bound ItemsSource

I am using WinUI 3 UWP TabView in my App. I know that WinUI 3 is still in Preview stage for UWP. But still I want to know a workaround for my issue as I want to use TabView in my App. I have gone through the Official Documentation and GitHub Samples…
Kris2k
  • 275
  • 2
  • 12
2
votes
1 answer

Changing the stroke color of a rendered svg file at runtime?

I'm trying to create some scalable buttons in a WinUI application using svg files. I've achieved this at the moment using an image control as the button's context, similar to the below:
2
votes
2 answers

What are my options for selecting/opening files and folders when using WinUI3/Project Reunion 0.5?

There is literally no working API available which allows users to simply click a button in my app and be presented with a dialog box which would allow them to select files. Am I missing something here?
LeBrown Jones
  • 887
  • 6
  • 17
2
votes
0 answers

Cross-platform .NET webview with cookie and javascript support

I'm developing a cross-platform graphical desktop application in .NET 5. I'm currently using UNO Platform and WinUI 3 preview 3. I need to authenticate users to a remote website and store the generated cookies. I'm looking so for a third-party…
giuann
  • 31
  • 1
  • 3
2
votes
4 answers

UWP - How do I center a button?

I created a UWP solution and created a button. There are no problems with the buttons. I do not know how to center the button in the window. Code StackPanel stackPanel1 = new StackPanel(); Button TestButton = new Button(); …
user14517824
2
votes
0 answers

In UWP, how to have action button inside ItemRepeater?

I have an issue putting an action button in my ItemRepeater. I proceeded the same way as I do in ListView :
Ombrelin
  • 547
  • 1
  • 8
  • 27
2
votes
0 answers

How to compile/build and package an MSIX project but in parallel?

I'm trying to create an msixbundle or an msixupload file that will be uploaded to the Microsoft Store. Currently I'm using Azure Pipelines to perform the build, which targets x86|x64. I now want to add ARM64, but the builds are taking longer than…
Daniel
  • 126
  • 1
  • 8
2
votes
2 answers

WinUI 3.0 - Why UWP project is asking for MS Edge for Business for WebView2

When I use WebView2 control in a UWP project with WinUI 3.0 and run the app, the webpage inside WebView2 control is not displayed. Instead, the app displays the following message that takes me to Microsoft Edge for Business download page: a…
nam
  • 21,967
  • 37
  • 158
  • 332
2
votes
1 answer

How to use Microsoft.UI.Xaml.Controls resources in (Uno 2.4)

Readme after installation of Microsoft.UI.Xaml NuGet tells to put into app resources. But looks like this class does not exist in Uno. Here I see that it is added in code and with…
Andrii
  • 1,081
  • 1
  • 11
  • 24
2
votes
2 answers

WinUI ProgressRing Don't Show on WASM (Uno 2.4)

I'm trying to add the new WinUI 2.4 ProgressRing. It works perfectly on UWP app but not show in WASM. My App.xaml and Mainpage.xaml is: App.xaml:
berkb
  • 542
  • 6
  • 21
2
votes
1 answer

Raisepropertychanged is null and does not notify the property after datacontext changed

I have a mainPage in which I am calling my user control. The idea is that I have a TextBlock, and upon click of a button I am changing the Text which is above the Hello World name.
1 2
3
24 25