2016-08-17 05:18:45 +03:00
|
|
|
|
using Bit.App.Enums;
|
2017-05-30 21:13:53 +03:00
|
|
|
|
using Bit.App.Utilities;
|
2016-08-17 05:18:45 +03:00
|
|
|
|
using System;
|
|
|
|
|
using Xamarin.Forms;
|
|
|
|
|
|
|
|
|
|
namespace Bit.App.Controls
|
|
|
|
|
{
|
|
|
|
|
public class ExtendedButton : Button
|
|
|
|
|
{
|
|
|
|
|
public static readonly BindableProperty PaddingProperty =
|
|
|
|
|
BindableProperty.Create(nameof(Padding), typeof(Thickness), typeof(ExtendedButton), default(Thickness));
|
2016-08-18 07:20:21 +03:00
|
|
|
|
public static readonly BindableProperty UppercaseProperty =
|
2016-08-18 15:43:55 +03:00
|
|
|
|
BindableProperty.Create(nameof(Uppercase), typeof(bool), typeof(ExtendedButton),
|
2017-05-30 21:13:53 +03:00
|
|
|
|
Helpers.OnPlatform(iOS: false, Android: true, WinPhone: false));
|
2016-08-17 05:18:45 +03:00
|
|
|
|
|
|
|
|
|
public Thickness Padding
|
|
|
|
|
{
|
|
|
|
|
get { return (Thickness)GetValue(PaddingProperty); }
|
|
|
|
|
set { SetValue(PaddingProperty, value); }
|
|
|
|
|
}
|
2016-08-18 07:20:21 +03:00
|
|
|
|
|
|
|
|
|
public bool Uppercase
|
|
|
|
|
{
|
|
|
|
|
get { return (bool)GetValue(UppercaseProperty); }
|
|
|
|
|
set { SetValue(UppercaseProperty, value); }
|
|
|
|
|
}
|
2016-08-17 05:18:45 +03:00
|
|
|
|
}
|
|
|
|
|
}
|