{
Style.UnderLine.BackgroundColor = new ColorSelector();
}
- Style.UnderLine.BackgroundColor.All = value;
+ if (Style.UnderLine.BackgroundColor != null)
+ {
+ Style.UnderLine.BackgroundColor.All = value;
+ }
//RelayoutRequest();
}
}
{
Style.Text.PointSize = new FloatSelector();
}
+ if (Style.Text.PointSize != null)
+ {
Style.Text.PointSize.All = value;
+ }
//RelayoutRequest();
}
}
{
Style.Text.TextColor = new ColorSelector();
}
- Style.Text.TextColor.All = value;
+ if (Style.Text.TextColor != null)
+ {
+ Style.Text.TextColor.All = value;
+ }
//RelayoutRequest();
}
}
+ private ColorSelector textColorSelector = new ColorSelector();
/// <summary>
/// Text color selector in Tab.
/// </summary>
{
get
{
- return (ColorSelector)Style.Text.TextColor;
+ return textColorSelector;
}
set
{
- if (value != null)
- {
- //CreateTextAttributes();
- Style.Text.TextColor = value.Clone() as ColorSelector;
- //RelayoutRequest();
- }
+ textColorSelector.Clone(value);
}
}
+
/// <summary>
/// Add tab item by item data. The added item will be added to end of all items automatically.
/// </summary>