void MainPageResized(object sender, MainPageSizeChangedEventArgs e) { if (Window.Current.Bounds.Width >= 1304) { ButtonsContainer.Orientation = Orientation.Horizontal; } else { ButtonsContainer.Orientation = Orientation.Vertical; } }
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; } }
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; } }
private void rootPage_MainPageResized(object sender, MainPageSizeChangedEventArgs e) { UpdateOutputLayout(); }