Private Sub Maximize_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles Maximize.Click If Me.WindowState = Windows.WindowState.Maximized Then Me.WindowState = Windows.WindowState.Normal Me.Width = 820 Me.Height = 440 Me.Grid1.Width = 780 Me.Grid1.Height = 400 Me.StackPanel1.Height = 360 Me.StackPanel1.Width = 140 Me.StackPanel2.Height = 360 Me.StackPanel2.Width = 600 Else If Me.WindowState = Windows.WindowState.Normal Then Me.WindowState = Windows.WindowState.Maximized 'Me.Width = 1350 'Me.Height = 600 Me.Grid1.Width = 1300 Me.Grid1.Height = 600 Me.StackPanel1.Height = 460 Me.StackPanel1.Width = 200 Me.StackPanel2.Height = 460 Me.StackPanel2.Width = 800 End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)