Ejemplo n.º 1
0
        public override void OnChildrenLoaded()
        {
            // We're always draggable:
            this["draggable"] = "1";

            // Get the scroll bar:
            ScrollBar = parentElement as HtmlScrollbarElement;

            if (ScrollBar == null)
            {
                return;
            }

            // Set orient attrib for CSS:
            this["orient"] = ScrollBar["orient"];

            IsVertical = (ScrollBar.IsVertical);
        }
Ejemplo n.º 2
0
        public override void OnChildrenLoaded()
        {
            // We're always draggable:
            setAttribute("draggable", "1");

            // Get the scroll bar:
            ScrollBar = parentElement as HtmlScrollbarElement;

            if (ScrollBar == null)
            {
                return;
            }

            // Set orient attrib for CSS:
            setAttribute("orient", ScrollBar.getAttribute("orient"));

            IsVertical = (ScrollBar.IsVertical);
        }