0
カスタムクラスのフォントサイズを設定したい場合があります。私はこれをどうすればできるのですか?カスタムクラスのフォントサイズを設定するXamarinフォーム
CustomButtonクラス
public static readonly BindableProperty PaddingProperty =
BindableProperty.Create(
nameof(Padding),
typeof(Thickness),
typeof(CustomButton),
new Thickness(0, 0, 0, 0));
public static readonly BindableProperty TypeProperty =
BindableProperty.Create(
nameof(Type),
typeof(TypeEnum),
typeof(CustomButton),
TypeEnum.Blue
);
public Thickness Padding
{
get { return (Thickness)GetValue(PaddingProperty); }
set { SetValue(PaddingProperty, value); }
}