}
}
+ private new Extents padding;
/// <summary>
/// overwrite the Padding.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public new Extents Padding
{
- get;
- set;
+ get
+ {
+ if (null == padding)
+ {
+ padding = new Extents((ushort start, ushort end, ushort top, ushort bottom) =>
+ {
+ padding.Start = start;
+ padding.End = end;
+ padding.Top = top;
+ padding.Bottom = bottom;
+ }, 0, 0, 0, 0);
+ }
+
+ return padding;
+ }
+ set
+ {
+ if (null == padding)
+ {
+ padding = new Extents((ushort start, ushort end, ushort top, ushort bottom) =>
+ {
+ padding.Start = start;
+ padding.End = end;
+ padding.Top = top;
+ padding.Bottom = bottom;
+ }, 0, 0, 0, 0);
+ }
+
+ padding.CopyFrom(value);
+ }
}
/// <summary>
/// you can override it to create your own default attributes.
/// </summary>
/// <since_tizen> 6 </since_tizen>
- /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
+ /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
- protected override Attributes GetAttributes()
+ protected override ViewStyle GetViewStyle()
{
return null;
}
}
if (mScrollBar.Direction == ScrollBar.DirectionType.Vertical)
{
- mScrollBar.ThumbSize = new Size(thickness, length);
+ mScrollBar.Style.Thumb.Size = new Size(thickness, length);
}
else
{
- mScrollBar.ThumbSize = new Size(length, thickness);
+ mScrollBar.Style.Thumb.Size = new Size(length, thickness);
}
mScrollBar.MinValue = 0;
mScrollBar.MaxValue = (int)(range - extent);