The .NET MAUI Community Toolkit is a collection of common elements for development with .NET MAUI that developers tend to replicate across multiple apps. It simplifies and demonstrates common developer tasks when building apps with .NET MAUI.
Questions tagged [maui-community-toolkit]
190 questions
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
6
votes
5 answers
.Net MAUI how to include a link in a Label
Using Visual Studio Community edition 2022.
New to .Net MAUI and am trying to follow the examples provided in the documentation found at https://learn.microsoft.com/en-us/dotnet/maui/user-interface/controls/label
The XAML code below (from the docs)…

bdcoder
- 3,280
- 8
- 35
- 55
5
votes
2 answers
Unable to change the StatusBar when at the splashscreen for light and dark themes
I am trying to change the color/style of the StatusBar based on the device being set to light or dark theme, but not having much luck.
The following XAML works once the app has loaded, but does not work on the splash screen:
…

oshirowanen
- 15,297
- 82
- 198
- 350
4
votes
1 answer
Expander Handler Issue? System.Exception: 'Handler not found for view Xamarin.CommunityToolkit.UI.Views.Expander.'
I'm using Visual Studio 2022 preview 2.0 MAUI. I want to used a expander in MAUI, I have used Xamarin.CommunityToolkit.MauiCompat nuget. But I am seeing the exception System.Exception: 'Handler not found for view…

user16258378
- 95
- 6
3
votes
1 answer
MAUI: how to validate an entry field to be non empty and a valid e-mail
I have an entry field that I need to validate to be non empty and a valid e-mail.
I used MAUI toolkit behaviors this way:
…

jstuardo
- 3,901
- 14
- 61
- 136
3
votes
4 answers
How do you set the status bar color for iOS with platform specific code on .NET MAUI?
I am looking to set the status bar color for iOS on .NET MAUI. I have tried a combination of Community Toolkit (Current bug where release builds of Android crash on startup), Background Color and Background (Both not respected by iOS on startup) and…

JakenBake
- 73
- 8
3
votes
3 answers
Add Transparent Background Color to Popup Page for MAUI using Community Toolkit in iOS
I started working with .NET MAUI.
Installed Community Toolkit to display Popup.
Popup UI doesn't show transparent background color in iOS where as in Android it works perfectly fine.
Android:
iOS:
Added XAML File for Popup:
Popup:

Mars
- 269
- 1
- 3
- 22
3
votes
2 answers
.NET MAUI CarouselView changing position is not working without swiping at least once
I am trying to create an onboarding view with CarouselView. I have a position indicator and a button to change the carousel view item. When I press the button, it should display the next item. Alternatively, if I click on the indicator, it should…

Mahmudul Hasan
- 798
- 11
- 35
3
votes
1 answer
Passing data to CommunityToolkit.Maui Popup
How do I pass data to a CommunityToolkit Popup in a .Net MAUI app?
Documentation shows how to send a result from Popup back to the page but doesn’t show how to pass data to the Popup.

Sam
- 26,817
- 58
- 206
- 383
3
votes
1 answer
.Net Maui EventToCommand for unfocus event for Entry throws System.InvalidCastException
Am building a new App in .Net Maui using VS 2022 Preview.
I am using CommunityToolkit.Mvvm
I have an entry field. When this field loses focus, I want to trigger a command.
My xaml is :

MethodToChaos
- 335
- 2
- 17
3
votes
0 answers
How to access the files that are located in the Resources folder in the .NET MAUI app
In my application, I will provide two options to load files as FromResource() and FromFile() method. In the first method, the file should be marked as EmbeddedResource and loaded through the FromResource() method. The second option, user don't want…

sheik abuthaheer
- 98
- 1
- 6
3
votes
4 answers
AsyncCommand in .NET MAUI
I can't seem to find AsyncCommand in .NET MAUI or .NET MAUI Community Toolkit. Any idea what package/namespace I can find it?

Sam
- 26,817
- 58
- 206
- 383
2
votes
1 answer
CollectionView's selected item and another control bound to the same property behave incorrectly
In .Net MAUI app, I have a label's text and CollectionView's selected item bound to the same property. So I expect upon selecting an item in the CollectionView, a corresponding text to appear in the label, and the selected item to change color in…

David Shochet
- 5,035
- 11
- 57
- 105
2
votes
1 answer
AndroidManifest.xml Required Permissions settings not saving in .NET MAUI application
In the CommunityToolkit.Maui.Sample app found here under "samples," the folder picker doesn't work on Android as it says it doesn't have permission. I'm trying to check the setting for READ_EXTERNAL_STORAGE in the Required Permissions section of the…

an22
- 53
- 5
2
votes
1 answer
How do Styling using C# Markup and CommunityToolkit.Maui.Markup?
I've been exploring Maui for a while and have some questions related to styling. Most resources I've found seem to predominantly use XAML for styling purposes, focusing on documents like 'page.xaml' and 'style.xaml'. However, my personal preference…

master_ruko
- 629
- 1
- 4
- 22