Пример #1
0
 void MainPageResized(object sender, MainPageSizeChangedEventArgs e)
 {
     if (Window.Current.Bounds.Width >= 1304)
     {
         ButtonsContainer.Orientation = Orientation.Horizontal;
     }
     else
     {
         ButtonsContainer.Orientation = Orientation.Vertical;
     }
 }
Пример #2
0
 void rootPage_MainPageResized(object sender, MainPageSizeChangedEventArgs e)
 {
     if (Window.Current.Bounds.Width < 768)
     {
         InputPanel.Orientation = Orientation.Vertical;
         FunctionPanel.Margin   = new Thickness(0.0, 0.0, 0.0, 10.0);
     }
     else
     {
         InputPanel.Orientation = Orientation.Horizontal;
     }
 }
Пример #3
0
        void rootPage_MainPageResized(object sender, MainPageSizeChangedEventArgs e)
        {
            switch (e.ViewState)
            {
            case Windows.UI.ViewManagement.ApplicationViewState.Snapped:
                InputPanel.Orientation = Orientation.Vertical;
                FunctionPanel.Margin   = new Thickness(0.0, 0.0, 0.0, 10.0);
                break;

            default:
                InputPanel.Orientation = Orientation.Horizontal;
                break;
            }
        }
Пример #4
0
 private void rootPage_MainPageResized(object sender, MainPageSizeChangedEventArgs e)
 {
     UpdateOutputLayout();
 }