public static readonly BindableProperty ButtonHeightProperty = BindableProperty.Create(nameof(ButtonHeight), typeof(int), typeof(Popup), default(int), propertyChanged: (bindable, oldValue, newValue) =>
{
var instance = (Popup)bindable;
- if (newValue != null && instance?.popupStyle?.Buttons?.Size != null )
+ if (newValue != null && instance?.popupStyle?.Buttons?.Size != null)
{
instance.popupStyle.Buttons.Size.Height = (int)newValue;
instance.btGroup.Itemheight = (int)newValue;
{
var instance = (Popup)bindable;
if (newValue != null)
- {
+ {
if (instance.popupStyle?.Buttons?.Text != null)
{
instance.popupStyle.Buttons.Text.TextColor = (Color)newValue;
public string ButtonFontFamily
{
get
- {
+ {
return (string)GetValue(ButtonFontFamilyProperty);
}
set
public HorizontalAlignment ButtonTextAlignment
{
get
- {
+ {
return (HorizontalAlignment)GetValue(ButtonTextAlignmentProperty);
}
set
public string ButtonBackground
{
get
- {
+ {
return (string)GetValue(ButtonBackgroundProperty);
}
set
{
get
{
-
+
return (Rectangle)GetValue(ButtonBackgroundBorderProperty);
}
set
titleY = (int)Title.Position.Y;
}
- if (btGroup.Count != 0 && popupStyle?.Buttons?.Size != null )
+ if (btGroup.Count != 0 && popupStyle?.Buttons?.Size != null)
{
buttonH = (int)popupStyle.Buttons.Size.Height;
}