WPF C# Grid

Rozmieszczenie kontrolek za pomocą grid

      <Grid>
          <Grid.ColumnDefinitions>
              <ColumnDefinition Width="*"></ColumnDefinition>
              <ColumnDefinition Width="*"></ColumnDefinition>
          </Grid.ColumnDefinitions>
          <Grid.RowDefinitions>
              <RowDefinition Height="*"></RowDefinition>
              <RowDefinition Height="*"></RowDefinition>
              <RowDefinition Height="*"></RowDefinition>
              <RowDefinition Height="*"></RowDefinition>
          </Grid.RowDefinitions>
          
          <Label Content="Client" Width="120" Grid.Row="0" Grid.Column="0"/>
          <TextBox x:Name ="client" Width="120" Grid.Row="0" Grid.Column="1"/>

          <Label Content="Width" Width="120" Grid.Row="1" Grid.Column="0"/>
          <TextBox x:Name ="widthInput" Width="120" Grid.Row="1" Grid.Column="1"/>

          <Label Content="Height" Width="120" Grid.Row="2" Grid.Column="0"/>
          <TextBox x:Name ="heightInput"  Width="120" Grid.Row="2" Grid.Column="1"/>
          
          <CheckBox x:Name ="isDamaged" 
                    Grid.Row="3" 
                    Grid.ColumnSpan="2" 
                    Content="is damaged"/>
      </Grid>
      <Button Content="Dodaj" Click="Button_Click" />
Scroll to Top