1,847 questions
1
vote
1
answer
1k
views
New WIn UI project crashes
I have installed the winui extension to Visual Studio 19. I created a new project using the Win UI desktop template. I have built the two projects created (one is the package). I try to run the ...
5
votes
2
answers
642
views
MSTest v2 won't run with net5.0-windows
I am trying to create a MSTest project for unit testing of our WinUI 3 development. I am able to run tests through the test explorer when targeting .NET 5.0.
Project Reunion requires net5.0-windows10....
1
vote
1
answer
2k
views
Bind to observable property, but show a non-observable sub-property
I am trying to write an MVVM and WinUI3 based app. I have a ViewModel property, SelectedFolder, which is observable (using MVVM Toolkit). This is of type Folder which is a plain old class. Something ...
2
votes
2
answers
4k
views
WinUI: Diplays SplashScreen with startup logic in OnLaunched method of the Application class
I would like to add some king of splash screen (modal) window in the "OnLauched" method of my WinUI 3 application.
Currently I just instanciate my main window, which is of type '...
2
votes
1
answer
3k
views
How to transparent the main window in WinUI-3
Do not judge strictly. I just started learning WinUI. Using WPF I could make the main window transparent right in the XAML markup. Is it possible to make the main window transparent using Reunion? I ...
1
vote
1
answer
1k
views
Using of system colors in WinUI3 without DynamicResource - is it possible?
I am porting some XAML from WPF to WinUI3. As far as I understand for now I can't use DynamicResource in WinUI3, but is there any workaround to use system color like this one in WPF:
<...
6
votes
3
answers
3k
views
WinUI3 App Throws Exception - What Have I Missed?
I recently upgraded Visual Studio 2019 to install the Project Reunion templates so I can run WinUI3 apps. I followed this guide. I believe I installed all the workloads and components from this list ...
0
votes
1
answer
1k
views
How to get Canvas to scroll in WinUI 3?
I am unable to get the ScrollBars to appear for a Canvas when its children are out of view. This is being directly added to the MainWindow.
<ScrollViewer>
<Canvas x:Name="MainCanvas&...
0
votes
1
answer
1k
views
How can I invoke keyboard accelerators programmatically in WinUI UWP?
Is there a way to invoke default Windows shortcuts like Win + V programmatically in WinUI UWP?
Some shortcuts, like Win + V, don't have any API calls as far as I know. Hence, I want to invoke them by ...
2
votes
1
answer
297
views
WINUI 3.0 - WeakEventManager missing
I cannot find the WeakEventManger class in WINUI3.
All my WPF projects uses this in the view models when I subscribe on model events that lives longer than the ViewModel.
ViewModels with long living ...
1
vote
3
answers
533
views
How to get the Current Line Index in WinUI UWP TextBox?
I know that SelectionStart property of WinUI UWP TextBox will return the CaretIndex. But, I want to get the exact Column and Line Position of Text. In WPF, GetLineFromCharacterIndex(CaretIndex) and ...
2
votes
2
answers
2k
views
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 ...
0
votes
1
answer
342
views
How the parent View-Model will gain access to the child View-Model?
<Page x:Class="ParentView">
<view:ChildView/>
<view:ChildView/>
...
</Page>
Prism attaching the child View-Models as AutowireViewModel=True. How can I ...
0
votes
1
answer
560
views
Visual Studio 2019 WinUI 3 Duplicate entry error
Error PRI175: 0x80073b0f - Processing Resources failed with error: Duplicate entry. MyApplication (Package) C:\MyApplication (Package)\GENERATEPROJECTPRIFILE
<- This is the error I always get if I ...
0
votes
1
answer
473
views
Migrating Uno (UWP) application to WinUI 3.0
I have an UWP based uno app with Droid, iOS, wasm. I would like to update it to a WinUI 3 based app, and delete the UWP platform.
In my project Microsoft.Toolkit.Uwp.UI.Controls is used, because of ...
1
vote
1
answer
882
views
How to add camera functionality in windows app using Project Reunion template for WinUI 3.0 desktop app?
I'm developing a desktop application using Project Reunion WinUI template in Visual Studio 2019. We have requirement that we need to capture image from our application and save it.
I tried ...
3
votes
2
answers
3k
views
How to resolve error CS0433: The type 'type' exists both in 'Microsoft.UI.Xaml,...' and 'Microsoft.UI...'
I'm making a UWP Windows app in C# using WinUI 3.0 and a few days ago I started getting this kind of error:
CS0433 The type 'NavigationView' exists in both 'Microsoft.UI.Xaml, Version=255.255.255.255,...
0
votes
4
answers
4k
views
How can I create multiple windows in winui 3.0?
I would like to have a button that creates another window. I'm building off the template app you get in VS2019 Preview So far, I've created a new control BlankWindow, just the default one. I can see ...
1
vote
1
answer
645
views
.NET MAUI Preview 5 WinUI - nothing is displayed, blank (indigo) screen
Running the sample app or a new app from the template renders only a blank indigo screen. App loads and runs, yet none of the web content renders and no error is given.
0
votes
1
answer
1k
views
c# - Run on another thread
I have a function that causes the GUI to freeze while its running so am trying to get it to run on another thread, then update text once its complete.
I have it running on another thread fine, but not ...
14
votes
6
answers
10k
views
"The project doesn't know how to run the profile MauiApp.WinUI"
I am trying to get started with a brand new .NET Maui application. Upon creating the project, it has a single project for the MauiApp, and another project named MauiApp.WinUI. When I try to run the ...
6
votes
1
answer
7k
views
System.ArgumentException: 'Value does not fall within the expected range.' on Content Dialog
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 ...
0
votes
1
answer
1k
views
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 ...
7
votes
1
answer
2k
views
How do I get a WinUI Control's parent Window?
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.
1
vote
1
answer
1k
views
Using TabItemTemplateSelector in WinUI 3 in conjunction with a TemplateSelector resulting in weirdly nested controls
Introduction:
I'm currently working on an app, where data should be displayed in a TabView. By default, a "home" tab will be open, displaying a Listbox. Upon clicking an entry in this box, a ...