1using CommunityToolkit.Maui.Behaviors;
5 [Obsolete(
"Use the Geometries and Paths instead")]
12 public static readonly BindableProperty TintColorProperty = BindableProperty.Create(nameof(TintColor), typeof(Color), typeof(
TintedImage), defaultValue: Colors.Transparent,
13 propertyChanged: (Bindable, OldVal, NewVal) =>
15 TintedImage TintedImage = (TintedImage)Bindable;
16 TintedImage.Behaviors.Clear();
17 TintedImage.Behaviors.Add(new IconTintColorBehavior() { TintColor = (Color)NewVal });
20 public Color TintColor
22 get => (Color)this.GetValue(TintColorProperty);
23 set => this.SetValue(TintColorProperty, value);