<Window x:Class="MetalCalc.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Калькулятор металла" Height="450" Width="550">
<Grid Margin="10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="180"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<!-- Тип проката -->
<StackPanel>
<TextBlock Text="Тип проката"/>
<RadioButton Content="Уголок" Name="rbAngle"/>
<RadioButton Content="Лист" Name="rbList"/>
<RadioButton Content="Труба" Name="rbTube"/>
<RadioButton Content="Круг, проволока" Name="rbCircle"/>
<RadioButton Content="Квадратная труба" Name="rbSquareTube"/>
<RadioButton Content="Квадрат" Name="rbSquare"/>
<RadioButton Content="Швеллер" Name="rbChannel"/>
<RadioButton Content="Лента" Name="rbStrip"/>
<RadioButton Content="Балка" Name="rbBeam"/>
<RadioButton Content="Шестигранник" Name="rbHex"/>
<RadioButton Content="Рельсы" Name="rbRails"/>
</StackPanel>
<!-- Правая часть -->
<StackPanel Grid.Column="1" Margin="10">
<TextBlock Text="Материал"/>
<ComboBox Name="Material" SelectionChanged="Material_SelectionChanged">
<ComboBoxItem Content="Сталь"/>
<ComboBoxItem Content="Алюминий"/>
<ComboBoxItem Content="Медь"/>
<ComboBoxItem Content="Цинк"/>
</ComboBox>
<TextBlock Text="Сторона a / диаметр (мм)"/>
<TextBox Name="a"/>
<TextBlock Text="Сторона b / толщина (мм)"/>
<TextBox Name="b"/>
<TextBlock Text="Длина (м)"/>
<TextBox Name="length"/>
<TextBlock Text="Плотность (г/см³)"/>
<TextBox Name="density"/>
<Button Content="Рассчитать" Margin="5" Click="Calc_Click"/>
<TextBlock Text="Вес (кг)"/>
<TextBox Name="result"/>
</StackPanel>
</Grid>
</Window>