winui Questions

3

Solved

I am able to start my Windows MAUI app using an URI, and I can get the URI itself. But, it appears that a NEW instance of the app is being created. This is not ideal for me -- if my app is already ...
Irrelevancy asked 21/10, 2022 at 23:17

1

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),...
Ikkela asked 21/11, 2022 at 14:28

1

I'm looking for a way to use WinUI with a visual Editor, but can't find one. And i'm not sure where to start on writing my own. As of today (December 11th, 2023), there is no Win UI Visual Ed...
Cuisine asked 11/12, 2023 at 18:44

6

I just start learning WinUI 3.0 and can't find any information in google or books like Learn WinUI 3.0 how to set default window size of application. I know in UWP it can be like ApplicationView.Pr...
Milkmaid asked 19/4, 2021 at 21:44

1

The .NET RID changed from .NET8, so I modified the PropertyGroup in the csproj file as follows. <PropertyGroup> <OutputType>WinExe</OutputType> <TargetFramework>net8.0-win...
Simson asked 18/11, 2023 at 9:2

3

Solved

I can't find how to easily create a custom control in which I can insert content in xaml. For example, I would like my control to contain a grid that I style somehow and then insert content into it...
Podite asked 18/9, 2023 at 6:49

1

I want to create a custom Entry with a completely personalized visual. For this, I created a CustomEntryHandler to modify the native view of the windows platform but I can't override the basic wind...
Papandreou asked 8/10, 2022 at 15:5

1

Solved

I have bound button command to one RelayCommand from MVVM Toolkit, which executes some function, with following: [RelayCommand] private async void SomeMethod() {} I want to prevent multiple clicks...
Hesky asked 25/7, 2022 at 15:23

1

Solved

A WinUI 3 question about accessing the UI thread from another thread, say, a Timer tick. In WinForms that was extremely easy with a (someControl).InvokeRequired and .Invoke. In WPF we had to add .D...
Iamb asked 24/8, 2022 at 0:41

1

I need to get a reference to the parent Microsoft.UI.Xaml.Window for a Control. Is there a way to do that in Project Reunion 0.5? Window.Current does not work in a desktop app.
Arsine asked 8/6, 2021 at 20:22

1

Solved

I'm trying to show a popup to edit a brand in my app but it doesn't show up. Function where I call the Dialog: private async Task EditBrandAsync(Brand brand) { var dialog = new ContentDialogs.Edit...
Shool asked 21/6, 2021 at 10:36

1

Solved

I'm triyng to make a login system in my UWP (WinUI3) app and when I try to lauch de Login Content Dialog it crashes throwing this error: System.ArgumentException: 'Value does not fall within the e...
Delossantos asked 17/6, 2021 at 10:58

2

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 M...
Spiffy asked 12/7, 2020 at 21:1

2

Solved

I was trying to use WinUI so I installed the plugin Microsoft.UI.Xaml (2.4.2) from Nuget and followed the instructions which says add This <XamlControlsResources xmlns="using:Microsoft.UI.X...
Expansile asked 23/6, 2020 at 18:16

0

In my WinUI 3.0 - UWP project, I have a WebView2 control that displays a simple html as follows. But when I call the following javascript code using ExecuteScriptAsync (as shown below), I get the f...
Stoke asked 13/7, 2020 at 4:5

0

I'll try to summarize my issue as concisely as I can: I have a legacy C++ project that uses WinAPI to create and manage UI elements. I want to replace this with a more modern framework that...
Fasciate asked 19/6, 2020 at 16:0

3

With .NET Core 3 in preview, it is possible to create a WinForms or WPF "desktop application" on the .NET Core platform. Using XAML islands, it is possible to host UWP controls in a WPF applicatio...
Jordanna asked 12/12, 2018 at 12:1
1

© 2022 - 2024 — McMap. All rights reserved.