23 lines
664 B
C#
23 lines
664 B
C#
using System;
|
|
using Xamarin.Forms;
|
|
|
|
namespace Payesh.App.Renders
|
|
{
|
|
public class ExtendedLabel : Label
|
|
{
|
|
public static readonly BindableProperty JustifyTextProperty =
|
|
BindableProperty.Create(
|
|
propertyName: nameof(JustifyText),
|
|
returnType: typeof(Boolean),
|
|
declaringType: typeof(ExtendedLabel),
|
|
defaultValue: false,
|
|
defaultBindingMode: BindingMode.OneWay
|
|
);
|
|
|
|
public bool JustifyText
|
|
{
|
|
get { return (Boolean)GetValue(JustifyTextProperty); }
|
|
set { SetValue(JustifyTextProperty, value); }
|
|
}
|
|
}
|
|
} |