Example #1
0
        public static void DockPanelTo(eDockPosition dockPosition, double panelSize)
        {
            if (dockPosition == eDockPosition.right)
            {
                F12toolsInstance.F12Panel.Width  = panelSize;
                F12toolsInstance.F12Panel.Height = double.NaN;
                F12toolsInstance.F12Panel.HorizontalAlignment = Windows.UI.Xaml.HorizontalAlignment.Right;
                F12toolsInstance.F12Panel.VerticalAlignment   = Windows.UI.Xaml.VerticalAlignment.Stretch;
            }
            else if (dockPosition == eDockPosition.bottom)
            {
                F12toolsInstance.F12Panel.Width  = double.NaN;
                F12toolsInstance.F12Panel.Height = panelSize;
                F12toolsInstance.F12Panel.HorizontalAlignment = Windows.UI.Xaml.HorizontalAlignment.Stretch;
                F12toolsInstance.F12Panel.VerticalAlignment   = Windows.UI.Xaml.VerticalAlignment.Bottom;
            }


            CurrentDockPosition = dockPosition;
        }
Example #2
0
        public static void DockPanelTo(eDockPosition dockPosition,   double panelSize) {

            if (dockPosition == eDockPosition.right)  
            {
                F12toolsInstance.F12Panel.Width = panelSize;
                F12toolsInstance.F12Panel.Height =  double.NaN;
                F12toolsInstance.F12Panel.HorizontalAlignment = Windows.UI.Xaml.HorizontalAlignment.Right;
                F12toolsInstance.F12Panel.VerticalAlignment = Windows.UI.Xaml.VerticalAlignment.Stretch;
            }
            else if (dockPosition == eDockPosition.bottom)
            {
                F12toolsInstance.F12Panel.Width = double.NaN;
                F12toolsInstance.F12Panel.Height = panelSize;
                F12toolsInstance.F12Panel.HorizontalAlignment = Windows.UI.Xaml.HorizontalAlignment.Stretch;
                F12toolsInstance.F12Panel.VerticalAlignment = Windows.UI.Xaml.VerticalAlignment.Bottom;

            }


            CurrentDockPosition = dockPosition;
        }