category management
This commit is contained in:
@ -190,6 +190,7 @@ namespace Billing.UI
|
||||
public class OptionImageCell : OptionSelectCell
|
||||
{
|
||||
public static readonly BindableProperty ImageSourceProperty = BindableProperty.Create(nameof(ImageSource), typeof(ImageSource), typeof(OptionImageCell));
|
||||
public static readonly BindableProperty TintColorProperty = BindableProperty.Create(nameof(TintColor), typeof(Color?), typeof(OptionImageCell));
|
||||
|
||||
[TypeConverter(typeof(ImageSourceConverter))]
|
||||
public ImageSource ImageSource
|
||||
@ -197,6 +198,12 @@ namespace Billing.UI
|
||||
get => (ImageSource)GetValue(ImageSourceProperty);
|
||||
set => SetValue(ImageSourceProperty, value);
|
||||
}
|
||||
[TypeConverter(typeof(ColorTypeConverter))]
|
||||
public Color? TintColor
|
||||
{
|
||||
get => (Color?)GetValue(TintColorProperty);
|
||||
set => SetValue(TintColorProperty, value);
|
||||
}
|
||||
|
||||
protected override View Content => new StackLayout
|
||||
{
|
||||
@ -211,7 +218,8 @@ namespace Billing.UI
|
||||
VerticalOptions = LayoutOptions.Center,
|
||||
Margin = new Thickness(6, 0)
|
||||
}
|
||||
.Binding(Image.SourceProperty, nameof(ImageSource)),
|
||||
.Binding(Image.SourceProperty, nameof(ImageSource))
|
||||
.Binding(TintImage.PrimaryColorProperty, nameof(TintColor)),
|
||||
|
||||
new TintImage
|
||||
{
|
||||
|
Reference in New Issue
Block a user