Questions tagged [maui-windows]
148 questions
24
votes
7 answers
MAUI .NET Set Window Size
How can I set the window size in MAUI?
Background info: I only care about Windows for this application - I chose MAUI so I could use Blazor for a desktop application. For some reason the default window size is massive (takes up almost all of my…

Sellorio
- 1,806
- 1
- 16
- 32
9
votes
1 answer
.NET MAUI error No parameterless constructor defined for this object
Occurs when binding my view to the view model.
Error description:
System.MissingMethodException: 'No parameterless constructor defined for type 'yournamespace.view.pagename'.'

bryanjez
- 439
- 4
- 8
7
votes
1 answer
Can I use existing WinUI3 controls in MAUI project?
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

Fruio Nik
- 71
- 5
4
votes
1 answer
Running/Launching a Separate Background Service from a MAUI App
I would like to use my MAUI app to launch a separate background service on the platform that it's running on. This background service makes use of gRPC to receive data from a server when the MAUI app itself is not running. I understand that it's…

The Don
- 343
- 2
- 13
4
votes
2 answers
.net MAUI how to maximize application on startup
How can I make a .net MAUI app maximize the window on Windows when it's launched ?
Currently it is starting as a small window and I don't want the user to have to constantly maximize it.
Thanks,

pascx64
- 904
- 16
- 31
3
votes
1 answer
Custom DatePicker in .NET MAUI
I'm trying to build a custom datePicker in .NET MAUI but I have some issue to solve.
First of all this is how the DatePicker should be:
The main problem is that I would like clicking above the label "Pick a date" to open the calendar for date…

Yoji
- 41
- 7
3
votes
1 answer
Between Maui (xaml) and Maui Blazor which one is better to make an application on Windows 10 or Windows 11?
I would like to make an application on on Windows 10 or Windows 11 using MAUI.
Between Maui (xaml) and Maui Blazor
which one is better to make an application on Windows 10 or Windows 11?
Could you explain why you chose the one you are recommending.…

user9427453
- 45
- 1
- 9
3
votes
0 answers
How to configure Auto update in MAUI application?
Consider we have developed a MAUI application, for deployment of this MAUI application in multiple windows machine, we created a setup file / package following this link -…

Sanket
- 51
- 3
3
votes
1 answer
How to add style for Title of ContentPage in .Net MAUI?
I'm working with .NET MAUI to create a desktop app.
Here, I have a ContentPage with the title My title.

Hoàng Trần
- 549
- 6
- 14
3
votes
3 answers
MAUI why is my title bar gray and how do I fix it?
I made the MAUI sample project in Visual Studio 2022, but when I launch the program, the window's title bar is gray, a gray that doesn't change color at all when the window loses focus (though the title text I added changes from black to grey). I…

Medinoc
- 6,577
- 20
- 42
3
votes
0 answers
How to publish Windows only MAUI app in Visual Studio 2022 17.4 onwards?
Context:
I have a MAUI app I have been working on which, for now, only has Windows listed as a TargetFramework in the project file. Until VS2022 17.4 arrived I was able to build and publish this using a publish profile (pubxml) file.
The…

DTynewydd
- 310
- 4
- 10
3
votes
0 answers
How to style the focused ListViewItem in a ListView
I have a ListView in a dotnet MAUI Windows app with a custom viewcell for the item template. I'd like to control how the focused item is styled. At the moment it becomes grey and has a little blue line on the left edge.
This is the code I am…

Richard Garside
- 87,839
- 11
- 80
- 93
3
votes
1 answer
File activation in MAUI
I want users to be able to open a file using my MAUI app. For example in Windows they could right-click on the file in File Explorer, choose my app in "open with" and then my app would open the file.
I have put file type associations in the Windows…

Robyn
- 1,334
- 10
- 12
3
votes
1 answer
How dynamically add tabs in code behind to Maui Shell TabBar?
I'm new to desktop development and I'm trying to implement an application where it's possible to dynamically create tabs with content based on an selected item from a list.
Items are added to the TabBar.Items collection, however I can't see them on…

Bagroy
- 65
- 6
3
votes
0 answers
Are there generic font families for .NET MAUI
I'm new with .NET MAUI and I ask me if there are a way to use generic font families.
like in CSS
cursive
fantasy
monospace
serif
sans-serif
or what is the best approach for this?
Do I really need to include specific fonts in every app? I would…

Kux
- 1,362
- 1
- 16
- 31