--- /dev/null
+/*
+ * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+using Tizen.NUI;
+using Tizen.NUI.Components;
+
+namespace Oobe.Common.Styles
+{
+ public static class ScrollbarStyles
+ {
+ public static ScrollbarStyle Default = new ScrollbarStyle{
+ ThumbColor = new Color(10.0f/255.0f, 13.0f/255.0f, 73.0f/255.0f, 0.5f),
+ TrackColor = new Color(0.0f, 0.0f, 0.0f, 0.0f),
+ };
+ }
+}
bounding.Position2D = new Position2D(56 - 6, 112 - 6);
bounding.Size2D = new Size2D(1086, 331);
- ScrollableBase scroller = new ScrollableBase();
- scroller.Position2D = new Position2D(120, 136);
- scroller.Size2D = new Size2D(944, 268);
+ ScrollableBase scroller = new ScrollableBase{
+ Position2D = new Position2D(56, 136),
+ Size2D = new Size2D(1072, 264),
+ Scrollbar = new Scrollbar(ScrollbarStyles.Default),
+ HideScrollBar = false,
+ };
// workaround crash issue in ScrollableBase
var scrollerContent = new View
{
+ Padding = new Extents(64, 67, 0, 0),
WidthResizePolicy = ResizePolicyType.FillToParent,
HeightResizePolicy = ResizePolicyType.FitToChildren,
Layout = new LinearLayout(),
using Tizen.NUI;
using Tizen.NUI.BaseComponents;
using Tizen.NUI.Components;
+using Oobe.Common.Styles;
namespace Oobe.Wifi.Controls
{
{
Size = new Size(width, height),
ScrollingDirection = ScrollableBase.Direction.Vertical,
+ Scrollbar = new Scrollbar(ScrollbarStyles.Default),
+ HideScrollBar = false,
};
}
return scrollableBase;