{
get
{
- return Style.Text.Text?.GetValue(ControlState);
+ return Style?.Text?.Text?.GetValue(ControlState);
}
set
{
- Style.Text.Text = value;
+ if (null != Style?.Text)
+ {
+ Style.Text.Text = value;
+ }
}
}
}
}
}
+ private StringSelector textSelector = new StringSelector();
/// <summary>
/// Text string selector in Button.
/// </summary>
{
get
{
- return (StringSelector)Style?.Text?.Text;
+ return textSelector;
}
set
{
- if (value != null)
- {
- Style.Text.Text = value.Clone() as StringSelector;
- }
+ textSelector.Clone(value);
}
}
+
+ private StringSelector translatableTextSelector = new StringSelector();
/// <summary>
/// Translateable text string selector in Button.
/// </summary>
{
get
{
- return (StringSelector)Style?.Text?.TranslatableText;
+ return translatableTextSelector;
}
set
{
- if (value != null)
- {
- Style.Text.TranslatableText = value.Clone() as StringSelector;
- }
+ translatableTextSelector.Clone(value);
}
}
+
+ private ColorSelector textColorSelector = new ColorSelector();
/// <summary>
/// Text color selector in Button.
/// </summary>
{
get
{
- return (ColorSelector)Style?.Text?.TextColor;
+ return textColorSelector;
}
set
{
- if(value != null)
- {
- Style.Text.TextColor = value.Clone() as ColorSelector;
- }
+ textColorSelector.Clone(value);
}
}
+ private FloatSelector pointSizeSelector = new FloatSelector();
/// <summary>
/// Text font size selector in Button.
/// </summary>
{
get
{
- return (FloatSelector)Style?.Text?.PointSize;
+ return pointSizeSelector;
}
set
{
- if (value != null)
- {
- Style.Text.PointSize = value.Clone() as FloatSelector;
- }
+ pointSizeSelector.Clone(value);
}
}
+
+ private StringSelector iconURLSelector = new StringSelector();
/// <summary>
/// Icon image's resource url selector in Button.
/// </summary>
{
get
{
- return (StringSelector)Style?.Icon?.ResourceUrl;
+ return iconURLSelector;
}
set
{
- if (value != null)
- {
- Style.Icon.ResourceUrl = value.Clone() as StringSelector;
- }
+ iconURLSelector.Clone(value);
}
}
+
/// <summary>
/// Flag to decide selected state in Button.
/// </summary>
defaultValueCreator: (bindable) =>
{
var instance = (Popup)bindable;
- return instance.Style.Buttons?.Size?.Height ?? 0;
+ return (int)(instance.Style?.Buttons?.Size?.Height ?? 0);
});
/// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
defaultValueCreator: (bindable) =>
{
var instance = (Popup)bindable;
- return instance.Style.Buttons?.Text?.FontFamily;
+ return instance.Style?.Buttons?.Text?.FontFamily.All;
});
/// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
instance.Style.Duration = (uint)newValue;
if (instance.scrollAniPlayer != null)
{
- instance.scrollAniPlayer.Duration = (int)newValue;
+ instance.scrollAniPlayer.Duration = (int)instance.Style.Duration;
}
}
},
}
}
+ private StringSelector thumbImageURLSelector = new StringSelector();
/// <summary>
/// Gets or sets the resource url selector of the thumb image object.
/// </summary>
{
get
{
- return (StringSelector)Style.Thumb?.ResourceUrl;
+ return thumbImageURLSelector;
}
set
{
- if (value != null)
- {
- Style.Thumb.ResourceUrl = value.Clone() as StringSelector;
- }
+ thumbImageURLSelector.Clone(value);
}
}
+
/// <summary>
/// Gets or sets the color of the background track image object.
/// </summary>
}
}
+ private StringSelector switchBackgroundImageURLSelector = new StringSelector();
/// <summary>
/// Background image's resource url selector in Switch.
/// </summary>
{
get
{
- return (StringSelector)Style.Track?.ResourceUrl;
+ return switchBackgroundImageURLSelector;
}
set
{
- if (value != null)
- {
- Style.Track.ResourceUrl = value.Clone() as StringSelector;
- }
+ switchBackgroundImageURLSelector.Clone(value);
}
}
}
}
+ private StringSelector switchHandlerImageURLSelector = new StringSelector();
/// <summary>
/// Handler image's resource url selector in Switch.
/// </summary>
{
get
{
- return (StringSelector)Style.Thumb?.ResourceUrl;
+ return switchHandlerImageURLSelector;
}
set
{
- if (value != null)
- {
- Style.Thumb.ResourceUrl = value.Clone() as StringSelector;
- }
+ switchHandlerImageURLSelector.Clone(value);
}
}
+
/// <summary>
/// Handler image's size in Switch.
/// </summary>
}
}
+ 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>
Interop.Extents.Extents_start_set(swigCPtr, that.Start);
Interop.Extents.Extents_end_set(swigCPtr, that.End);
Interop.Extents.Extents_top_set(swigCPtr, that.Top);
- Interop.Extents.Extents_bottom_set(swigCPtr, that.End);
+ Interop.Extents.Extents_bottom_set(swigCPtr, that.Bottom);
}
/// <summary>