Skip to main content
Filter by
Sorted by
Tagged with
4 votes
1 answer
3k views

If you want to use the default styles, colors, etc..., you need to bring them from the generic.xaml file that comes with WindowsAppSDK NuGet packages. Hence the question, where is located the generic....
Andrew KeepCoding's user avatar
11 votes
3 answers
10k views

I am creating my first WinUI 3 desktop application. I have a NavigationView on my MainWindow. I have 9 different pages that I navigate to via the frame in the NavigationView. One of the pages is for ...
LennyL's user avatar
  • 373
8 votes
5 answers
4k views

I've created a Maui windows application. I'm looking to activate the application through a URI and pass query parameters to the app. I've added the windows protocol for calling the app via uri in the ...
Meridith Spellerberg's user avatar
27 votes
8 answers
38k views

How can I remove the Title Bar in MAUI and fix the window size as 800x400 pixels in the Windows version of the application? full size I searched for a very long time in the Internet, but I found ...
Ярослав Донецкий's user avatar
18 votes
1 answer
12k views

I was developing uwp apps for the past few years, now moving to winui3. It is my first project. I am unable to find the designer view for the XAML files. Is it not available in WinUI3? or something ...
Mg Bhadurudeen's user avatar
4 votes
2 answers
4k views

I'm trying to show a file picker in my Windows App SDK (WinUI 3) application. I'm making it in C#. Here's my function to show the file picker: private async Task<StorageFile> PickFileAsync() { ...
user avatar
14 votes
6 answers
10k views

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 ...
Jack Carbone's user avatar
8 votes
1 answer
3k views

Is it possible to use the exisiting controls of WinUI 3 in the MAUI project? Like controls in https://github.com/microsoft/WinUI-Gallery I installed the WinUI package to my MAUI project <ItemGroup&...
Fruio Nik's user avatar
4 votes
1 answer
3k views

I couldn't find any guidance on Microsoft websites or on the winui github. I'm working on a WinUI 3 application, and have previously worked on WPF. I tried setting a default FontFamily for my ...
Tam Bui's user avatar
  • 3,088
3 votes
1 answer
644 views

Resolutions exist to convert System.Drawing.Icon to System.Media.ImageSource (see Convert System.Drawing.Icon to System.Media.ImageSource). But when I used WinUI instead of WPF, this resolution seems ...
Jack251970's user avatar
2 votes
2 answers
4k views

How do I open a new window in WinRT / WinUI3? I want to click a button and open up another floating window on top of the current / main window. I have tried code from several samples with zero luck: ...
rileyd's user avatar
  • 86
2 votes
1 answer
939 views

Following on from my last post, am looking for a way to wrap my Ionic/Angular application with some sort of Windows application. I am looking at Electron (and having issues), but also investigating if ...
peterc's user avatar
  • 7,983
2 votes
1 answer
2k views

I am working on a WinUI 3 demo using C++. I want to get a Main or Native Window Handler to open a Picker within a Page. The code block which I am using works fine on Window but it does not work on ...
Gaurang Dave's user avatar
  • 4,074
2 votes
1 answer
572 views

I have a ToggleButton with a KeyboardAccelerator that toggles a button whenever the B key is pressed. The problem I am having is that button is only togglable using the keyboard accelerator when the ...
Ryan Luu's user avatar
  • 631
1 vote
1 answer
821 views

I am developing an application in WinUI 3 and I need to open a folder picker dialog. To do so I visited the documentation and GitHub pages and this is what I wrote (PrincipalPage.xaml.cs): (...) ...
Hyphen's user avatar
  • 13
1 vote
3 answers
332 views

I am building a WinUI 3 Application. I have used the Template Studio to Create a number of pages. Now I am trying to add a log in Window to be called before the main Window. The Login Screen is of ...
Niall O'Dwyer's user avatar
0 votes
1 answer
263 views

I am a total beginner with WinUI, but have some experience with C# and Windows Forms. I am trying out WinUI 3 for the first time and am trying to open a login window (ContentDialog) before the ...
Ferenc's user avatar
  • 21
0 votes
1 answer
1k views

In reference to my question about TreeView, I was suggested to use data binding to populate the items of the TreView. I create a new Black App, Packaged, WinUI3 in Desktop C++ VS 2022 project. This ...
Michael Chourdakis's user avatar
0 votes
1 answer
493 views

I copied the example code from WinUI3 Gallery, it works perfect in MainWindow, but when I do the same thing in a subpage, I received an Exception. I know the problem is with getting the window handle,...
Wu Xiuheng's user avatar
0 votes
2 answers
2k views

I'm getting started with WinUI3. Having no previous experience with UWP or WPF or even much C#, it's tough going. Today's question is how to display a simple dialog at startup. Consider that we start ...
WalderFrey's user avatar
14 votes
2 answers
8k views

I develop many UWP apps to Windows 10, but to Windows 11 I have so many questions and sometimes the Microsoft Docs it's confusing. I want develop new apps to Windows 11 but I am totally lost! What is ...
Luís's user avatar
  • 257
8 votes
2 answers
2k views

The Goal Creating and rendering a simple WinUI3 GUI in PowerShell 7.5 which is based on .NET 9. Nothing complicated, just a window and a button in it, such as this XAML <?xml version="1.0"...
SpyNet's user avatar
  • 777
6 votes
3 answers
3k views

So in UWP, we can use ApplicationView.GetForCurrentView().SetPreferredMinSize(new Size(500, 500)); but ApplicationView.GetForCurrentView(); returns null in WinUI 3. Is there a way to set the minimum ...
Hebele Hübele's user avatar
5 votes
2 answers
588 views

I'm trying to combine [JsonPropertyName] with [ObservableProperty] to assign the value "last_updated" of my json to the property "Updated" of my object. I tried this code: [...
TimoFran's user avatar
  • 129
4 votes
1 answer
9k views

I'm working with .NET MAUI to create a desktop app. Here, I have a ContentPage with the title My title. <ContentPage x:Class="MAUI.Desktop.Pages.PlanningPage" xmlns="http://...
Hoàng Trần's user avatar