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
2
votes
1 answer
Why am I unable to trigger the click event or command on tapping bottom items in .Net Maui List View / Bindable Stack Layout?
I am developing a .Net Maui application and facing trouble with collection views, more specifically with the List View and the problem persists even if I try bindable layout like Stack Layout by replacing List View.
Only First few items can be…

Aroosa
- 35
- 4
2
votes
1 answer
Failing to request permissions in .NET MAUI
Good day.
In all my applications, requesting user permissions is not showing the permissions popup in Android.
I am using the FileSaver in the .NET MAUI CommunityToolkit and as I understand, the SaveAsync method is supposed to ask for permission and…

Tanaka Mawere
- 683
- 1
- 9
- 22
2
votes
2 answers
NET MAUI CommunityToolkit.Mvvm not validating
I have a view model:
public delegate void NotifyWithValidationMessages(Dictionary validationDictionary);
public partial class BaseViewModel : ObservableValidator
{
public event NotifyWithValidationMessages?…

Wasyster
- 2,279
- 4
- 26
- 58
2
votes
1 answer
.MAUI: How to add context menu into control by using community-toolkit-markup or C#
Now in .Net7 I can add context menu into control like this:
Entry
x:Name="MyEntry"
BackgroundColor="AliceBlue"
Keyboard="{Binding KeyboardValue,…

Le Anh Xuan
- 125
- 7
2
votes
2 answers
.NET MAUI style problem with gradient colors - Android
I started using .NET MAUI recently and I found a problem with Styling.
I started with the basic project to make sure the problem is not something I made during the process.
The project starts with a button that will change text and size each time…

Abanoub Zak
- 51
- 6
2
votes
2 answers
EventToCommandBehavior throws InvalidOperationException in MAUI for checkbox
I need to run a command once a checkbox is checked/unchecked. The checkboxes are rendered in the page via StackLayout's items source, EventToCommandBehavior is from MAUI CommunityToolkit.
The exception is thrown when the page should be rendered,…

Sebastian Busek
- 952
- 1
- 14
- 28
2
votes
0 answers
Make popup size to be always equal to the size of its content
I wonder if it's possible to make community toolkit popup size to get automatically set to the size of it's content? For example it contains a listview that is bound to the list of items. If I add new item in design time (not runtime) I can open the…

YMC
- 4,925
- 7
- 53
- 83
2
votes
1 answer
.Net Maui [RelayCommand] fails to compile if method name starts with a lowercase character?
New to .Net MAUI and am using version 8.0.0 of the CommunityToolkit.Mvvm with Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.3.3
In my XAML, I have a button:
2
votes
1 answer
MAUI DisplayAlert() When User Closes Window : Getting Unhandled Exception
I want to show an ALERT/POPUP to the user to ask him/her before he closes the Application.
This is what I am already doing :
In App.xaml.cs
Application.Current.MainPage.DisplayAlert this line throws unhandled exception,
The Exception gets unhandled…

BNG016
- 164
- 1
- 7
2
votes
2 answers
How to remove Actionbar In MAUI
My XAML Code for view
user18833900
2
votes
2 answers
How to initialize ViewModel with CommunityToolkit.Mvvm
We have a Xamarin.Forms app with FreshMvvm. Now, as Xamarin.Forms will not get support beginning next year, I am re-writing the app with .Net Maui. For MVVM pattern, I am trying to use CommunityToolkit.Mvvm. But I wonder how I can initialize the…

David Shochet
- 5,035
- 11
- 57
- 105
2
votes
2 answers
Changing TintColor of IconTintColorBehavior at runtime doesn't work
Hello I'm testing the new IconTintColorBehavior in CommunityToolkit.Maui 1.1.0.
It works find, but only when starting the application.
If I change the AppTheme during runtime, it doesn't work.
Has anyone else observed this behavior?

OneStepFurther
- 46
- 3
2
votes
1 answer
How to add drawingView in maui project
How to add DrawingView or Signaturepad in Maui using CommunityToolkit.maui.core, or how can I implement Signaturepad in maui project.

Lemo Gaans
- 23
- 3
1
vote
1 answer
Is there any way to use MAUI FileSaver in API 33 with .NET MAUI?
I'm writing a MAUI app that fetches an image from a remote API and would like to save it to the device's storage. The problem I'm facing is with it working on Android API 33.
As the permissions changed, the FileSaver class from the MAUI Community…

primix
- 355
- 1
- 8
1
vote
1 answer
HRESULT E_FAIL has been returned from a call to a COM component
I'm encountering an issue with a .NET MAUI application where I'm using the FilePicker.PickAsync method to allow users to pick image files. However, I'm consistently getting the following error:
Error HRESULT E_FAIL has been returned from a call to a…

Saiteja Rangi
- 41
- 3