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
1
vote
1 answer

How to use ObservableObject for interlinked properties?

I am trying to convert this working view model to one using ObservableObject from Community Toolkit to reduce boilerplate. public class HslVM : INotifyPropertyChanged { private float hue, saturation, luminosity; private Color color =…
1
vote
1 answer

Xamarin Forms: How to use Embedded Videos from local forlder?

I've tried looking for a solution but I cannot find one everyone seems to be using online sources and no one actually shows how to use videos from the local folder. I want to have a folder under Assets for Android and Resources for iOS called Videos…
1
vote
1 answer

Error when installed Xamarin.CommunityToolkit: "The target platform must be set to Windows"

I'm trying to install Xamarin.CommunityToolkit(ver. 2.0.5) from Nuget Packages, but I get this error message: So I installed Xamarin.AndroidX.Lifecycle.LiveData with version 2.4.1.1, as it says then I tried to install CommunityToolkit again, and…
1
vote
1 answer

Expander in CustomView do not expand

Oh guys, as I was reading, I found out that is not an expander what they want (Because is kind of implemented already). What I need to to, is to implement the animation of expanding/collapsing I did not see this public CarView() { …
edu
  • 87
  • 2
  • 8
1
vote
0 answers

Xamarin Community toolkit : TabViewItem content not rendering inside TabView

I am using Xamarin forms version (5.0.0.2515) and Xamarin community toolkit (2.0.4). I have tried to set TabViewItem content a normal label as well as a sample content view but none of them is rendering. Am I missing something or may be doing…
1
vote
1 answer

ObservableCollection / ObservableRangeCollection Set is never triggered

I'm using lists in my program and I need the list to update without me having to set the item source to null every time I get new information. The recommended workaround is to use an ObservableCollection, so that's what I did. Everything worked…
1
vote
0 answers

Label doesn't properly update on defered event handler [Bug?]

I noted something wrong, either it's from me or a bug when experimenting with .Net MAUI. I have an ObservableCollection property : public ObservableCollection Lotteries { get; set; } = new(); and an ObservableProperty (using community…
TRex
  • 127
  • 1
  • 8
1
vote
1 answer

Xamarin XCT Popup rounded Corners

is it possible to round the corners of the XCT popup? I tried to set the BackgroundColor to transparent, and to set the body in a frame with the option CornerRadius - but this does not work as desired. Does anyone have a tip on how to round the…
1
vote
0 answers

Adding Xamarin.CommunityToolkit.Effects.TouchEffect disables button click

I have a Button inside a StackLayout.
1
vote
1 answer

Unknown Spacing at Top of Popup

I am trying to create a popup using the Xamarin.CommunityToolkit package but the popup is rendering with extra spacing across the top. Because of hardware limitations I am forced to develop using a much older version of CommunityToolkit (1.2.0) and…
1
vote
1 answer

How to use Xamarin Community Toolkit extension properties and attributes in the C# code behind?

I am using Xamarin.Community Toolkit's ShadowEffect.Color and IconTintColorEffect.TintColor through XAML and it is working fine, but how can I achieve this through the C# Code Behind. I have searched on Google and Community Forums but could not find…
Junaid Pathan
  • 3,850
  • 1
  • 25
  • 47
1
vote
2 answers

Why does the height of the xct:TabView change when returning to a page with HasNavigationBar="false"

I am facing an issue with the TabView from the XamarinCommunityToolkit. There is a MainPage with two tabs "A" and "B", "A" showing some content, "B" serving as navigation to another ContentPage "DetailsPage". Additionally, the MainPage has set…
1
vote
1 answer

Updating a property in a viewmodel of popup doesn't update the UI

As in the title I have a problem where updating a property in a viewmodel of popup doesn't update the UI. I use popups from xamarin community toolkit. I'm using a command that does this task: async Task ShowPopup() { …
1
vote
2 answers

Xamarin Community Toolkit AsyncCommand not working

I am creating a Xamarin Forms mobile app using VS 2019 latest version. Xamarin Forms and Essentials packages are also updated to latest. I have following viewmodel, but the LoadHouses() method is not called via 24. LoadHousesCommand = new…
Asela
  • 303
  • 1
  • 5
  • 16
1
vote
0 answers

xamarin.forms MediaElement video re-starts when coming back from background in android

I have implemented MediaElement to play videos in xamarin.forms (using community toolkit) application. But whenever application goes into the background in android, it pauses the video and restart it whenever app resumes. I have tried saving…
Dhruv Gohil
  • 503
  • 1
  • 5
  • 13