this.isHorizontal = isHorizontal;
if (isHorizontal)
{
+ if (thumbHorizontalImageUrl != null)
+ {
+ thumbView.ResourceUrl = thumbHorizontalImageUrl;
+ thumbView.Color = thumbColor;
+ thumbView.BackgroundColor = Color.Transparent;
+ }
calculator = new HorizontalCalculator(contentLength > 0.0f ? contentLength : 0.0f, viewportLength, currentPosition);
}
else
{
+ if (thumbVerticalImageUrl != null)
+ {
+ thumbView.ResourceUrl = thumbVerticalImageUrl;
+ thumbView.Color = thumbColor;
+ thumbView.BackgroundColor = Color.Transparent;
+ }
calculator = new VerticalCalculator(contentLength > 0.0f ? contentLength : 0.0f, viewportLength, currentPosition);
}
theme.AddStyleWithoutClone("Tizen.NUI.Components.Scrollbar", new ScrollbarStyle()
{
- TrackThickness = 14,
- ThumbThickness = 14,
+ TrackThickness = 12,
+ ThumbThickness = 12,
TrackColor = new Color(0f, 0f, 0f, 0f),
ThumbColor = new Color("#0A0E4AFF"),
TrackPadding = 4,
{
Size = new Size(400, 300),
ScrollingDirection = Components.ScrollableBase.Direction.Horizontal,
+ HideScrollbar = false,
};
horizontalScrollableBase.ScrollOutOfBound += OnHorizontalScrollOutOfBound;
Size = new Size(400, 300),
ScrollingDirection = Components.ScrollableBase.Direction.Vertical,
EnableOverShootingEffect = true,
+ HideScrollbar = false,
};
verticalScrollableBase.ScrollOutOfBound += OnVerticalScrollOutOfBound;