/*public Layout(UIElement panel)
         * {
         *  this.panel = panel;
         * }*/

        public Layout(int paddingTop, int paddingBottom, int paddingLeft, int paddingRight, int spaceing, ILayoutType layoutType)
        {
            PaddingTop    = paddingTop;
            PaddingBottom = paddingBottom;
            PaddingLeft   = paddingLeft;
            PaddingRight  = paddingRight;
            Spaceing      = spaceing;
            LayoutType    = layoutType;
        }
Beispiel #2
0
        public ShuffleboardLayout GetLayout(string title, ILayoutType layoutType)
        {
            if (layoutType == null)
            {
                throw new ArgumentNullException(nameof(layoutType));
            }

            return(m_helper.GetLayout(title, layoutType.LayoutName));
        }
        public LayoutWrapperUIElement(UIElement elem, int paddingTop, int paddingBottom, int paddingLeft, int paddingRight, int spaceing, ILayoutType layoutType) : base(paddingTop, paddingBottom, paddingLeft, paddingRight, spaceing, layoutType)
        {
            this.elem          = elem;
            elem.PaddingBottom = 0;
            elem.PaddingLeft   = 0;
            elem.PaddingRight  = 0;
            elem.PaddingTop    = 0;

            elem.MarginBottom = 0;
            elem.MarginLeft   = 0;
            elem.MarginRight  = 0;
            elem.MarginTop    = 0;
        }
Beispiel #4
0
 public IShuffleboardLayoutWrapper GetLayout(string title, ILayoutType type)
 {
     return(new WrappedShuffleboardLayout(container.GetLayout(title, type)));
 }