Questions tagged [xamarin-community-toolkit]

The Xamarin Community Toolkit is a collection of Animations, Behaviors, Converters, Effects and Controls for mobile development with [xamarin-forms]. It simplifies and demonstrates common developer tasks building iOS, Android, and UWP apps with Xamarin.Forms.

The Xamarin Community Toolkit is a deep collaboration between the Xamarin community and the Xamarin team at Microsoft.

When Xamarin.Forms 5 was released, a few “experimental” features were the first to make their way to the toolkit. This includes the beloved C# UI Extensions, MediaElement, and Expander controls. There is much more to the toolkit though as the community has been contributing tons of great new controls and helpers.

One of the toolkit’s goal is to gather as many of those behaviors, converters, and effects that you keep copying from one project to another. This Toolkit wants to aggregate all of these into a single package so it will become your one-stop library that has it all.

The Toolkit will also be a place where you can find brand new controls. Some of them come from PRs to Xamarin.Forms that couldn’t be included in the main package, some our controls maintainers donating their controls, and some are just brand-new things!

Also see

84 questions
0
votes
0 answers

LongPress dosent get trigered

I installed the Xamarin community toolkit, and I am trying to play a message to the user when long pressing the item, but for some reason, it doesn't trigger. I want to send the selected item as a parameter, and delete it I added a little portion of…
edu
  • 87
  • 2
  • 8
0
votes
1 answer

Xamarin View freeze when raising OnPropertyChanged on value binded to Xamarin community toolkit BadgeView

I'm currently struggling with a weird behavior concerning Xamarin Community Toolkit BadgeView component. The component is used in the TitleView of my page like this:
0
votes
2 answers

How to write Can Execute with MVVM Helpers/XCT Async Commands (Error: C# Cannot implicitly convert type 'bool' to 'System.Func' )

I would like to do a simple Can Execute for my login page. Here is my code: (Email & Password are view model properties) (ex// string email; public string Email { get {...} set {...} }) LoginPageVM { Login = new AsyncCommand(OnLogin,…
0
votes
1 answer

How to access properties of generic base class's parameter in C#?

I have a common class PopupDialog which has properties such as bool IsBackDismissEnabled. This is used to denote whether pressing back button will dismiss the dialog. I am using Xamarin.CommunityToolkit Popup for showing a popup dialog. Here's my…
Junaid Pathan
  • 3,850
  • 1
  • 25
  • 47
0
votes
1 answer

Xamarin how to solve accessibility content labeling problem?

When i upload a relese to Google Play Console, after internal testing y have a warning (Accessibility => Content labeling) associated to this component. Here the recomendation is use android:contentDescription Then i add…
0
votes
1 answer

Xamarin Searchbar with MVVM

There are quite a few articles about how to use the Xamarin SearchBar with MVVM pattern. The problem is that all these articles bind the PerformSearch event to an MVVM command. I think these days, most users expect to see some results as they type…
Sam
  • 26,817
  • 58
  • 206
  • 383
0
votes
1 answer

Variable length in Xamarin Community Toolkit MaskedBehavior

I'm trying to use the Xamarin Community Toolkit MaskedBehavior in my app for phone extensions which can be 2, 3 or even up to 6 digits long. It's easy to define the mask if it's a set length but how do I use it in this case where I want the user to…
Sam
  • 26,817
  • 58
  • 206
  • 383
0
votes
1 answer

HttpClient.GetAsync not re-enabling the button MVVM

Solved: See below. Update: This fails on the HttpClient.GetAsync. It's like a "Task Finished" event isn't listened to. I'm suspecting a threading problem. It manifests itself as the button not re-enabling. I'm getting to know the…
Ray Brennan
  • 373
  • 1
  • 6
  • 19
0
votes
1 answer

Getting StateLayout with CustomState to show image thumbnail

In my Xamarin Forms 5 app, I have a form users will fill out to create a post -- similar to Facebook posts. The effect I'm trying to create is this: There's an "Add Image" button that allows user to upload an image. Once the image is uploaded, I…
Sam
  • 26,817
  • 58
  • 206
  • 383
0
votes
1 answer

How to add Xamarin Community Toolkit Popup inside a ContentPage in Xamarin Forms?

I want to add Xamarin.CommunityToolkit - Popup inside a ContentPage. I don't want to make seperate files for each Popup. Hence I want them to be inside ContentPage on which the popup will be shown. Is there anyway I can achieve this? Here is my XAML…
Junaid Pathan
  • 3,850
  • 1
  • 25
  • 47
0
votes
0 answers

How to create the tabs with center aligned using CommunityToolkit in xamarin forms

Am new to xamarin forms, how to create Tabview, TabViewItems should be aligned in center, using communityToolkit in xamarin forms, want to create the view as below Below is the code :
0
votes
1 answer

How do I expose MultiValidationBehavior's children in custom control?

I'm creating a custom control for an entry that can be validated. I did this by creating a ContentView that has a Grid as it's child that contains the entry, error label, etc. I'd like this to be flexible when it comes to validation, so ideally it…
Hackmodford
  • 3,901
  • 4
  • 35
  • 78
0
votes
0 answers

Popup in .Net Maui application

I use Xamarin community toolkit mauicompat to implement popup for .net maui but when I call to open the popup, it had an error like the image below and my code here: public partial class HomePage : ContentPage { public HomePage() { …
Harry
  • 145
  • 1
  • 3
  • 12
0
votes
0 answers

Xamarin.Forms MediaElement portrait video stutter on Android 12 but landscape video works

We have a background video in our Xamarin.Forms application. It actually has two files: portrait video (1080x2304) for portait mode and landscape video (2304x1080) for landscape mode. They are both MP4 24 fps 4000 kbps. They video is played using…
0
votes
0 answers

Xamarin Community Toolkit LongpressCommand stops item selection in CollectionView iOS

The code works as expected in Android but in iOS works inconsistently. The selected label's border changes colour when tapped, sometimes. After 3 or four taps of different labels they cease to be selected at all. Long pressing a label works as…