Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
TintedImage.cs
1using CommunityToolkit.Maui.Behaviors;
2
4{
5 [Obsolete("Use the Geometries and Paths instead")]
6 public class TintedImage : Image
7 {
8 public TintedImage()
9 {
10 }
11
12 public static readonly BindableProperty TintColorProperty = BindableProperty.Create(nameof(TintColor), typeof(Color), typeof(TintedImage), defaultValue: Colors.Transparent,
13 propertyChanged: (Bindable, OldVal, NewVal) =>
14 {
15 TintedImage TintedImage = (TintedImage)Bindable;
16 TintedImage.Behaviors.Clear();
17 TintedImage.Behaviors.Add(new IconTintColorBehavior() { TintColor = (Color)NewVal });
18 });
19
20 public Color TintColor
21 {
22 get => (Color)this.GetValue(TintColorProperty);
23 set => this.SetValue(TintColorProperty, value);
24 }
25 }
26}