|
|
@ -4,11 +4,15 @@ |
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
|
|
|
xmlns:spreads="clr-namespace:Pores.Models.Spreads" |
|
|
|
xmlns:converters="clr-namespace:Pores.Converters" |
|
|
|
mc:Ignorable="d" |
|
|
|
Title="Pores" Height="600" Width="1000"> |
|
|
|
<Window.Resources> |
|
|
|
<converters:CubicPowerOfInt x:Key="CubicPowerOfInt"/> |
|
|
|
</Window.Resources> |
|
|
|
<Grid> |
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
<ColumnDefinition Width="2*"/> |
|
|
|
<ColumnDefinition Width="0"/> |
|
|
|
<ColumnDefinition Width="1*"/> |
|
|
|
<ColumnDefinition Width="1*"/> |
|
|
|
</Grid.ColumnDefinitions> |
|
|
@ -34,8 +38,15 @@ |
|
|
|
<TextBox Text="{Binding CurrentMaterial.Depth}"/> |
|
|
|
<TextBlock Text="Высота: "/> |
|
|
|
<TextBox Text="{Binding CurrentMaterial.Height}"/> |
|
|
|
<TextBlock Text="Разрешение модели (n^3): " TextWrapping="Wrap"/> |
|
|
|
<TextBox Text="{Binding CurrentMaterial.NumberOfPores}"/> |
|
|
|
<ContentControl> |
|
|
|
<StackPanel Orientation="Horizontal"> |
|
|
|
<TextBlock Text="Разрешение модели (n="/> |
|
|
|
<TextBlock Text="{Binding CurrentMaterial.NumberOfPores, |
|
|
|
Converter={StaticResource CubicPowerOfInt}, Mode=OneWay}"/> |
|
|
|
<TextBlock Text="):"/> |
|
|
|
</StackPanel> |
|
|
|
</ContentControl> |
|
|
|
<TextBox Text="{Binding CurrentMaterial.NumberOfPores, UpdateSourceTrigger=PropertyChanged}"/> |
|
|
|
<TextBlock Text="Параметры модели распределения:"/> |
|
|
|
<ComboBox ItemsSource="{Binding Spreads}" SelectedItem="{Binding SelectedSpread}" HorizontalAlignment="Left" Width="198"></ComboBox> |
|
|
|
<ContentControl Content="{Binding SelectedSpread}"> |
|
|
@ -89,9 +100,9 @@ |
|
|
|
<TextBox Text="{Binding BatchPoint.Center.X}"/> |
|
|
|
<TextBlock Text="Координаты центра (Y): "/> |
|
|
|
<TextBox Text="{Binding BatchPoint.Center.Y}"/> |
|
|
|
<TextBlock Text="Координаты центра (Z): "/> |
|
|
|
<TextBlock Text="Координаты центра (Z-высота): "/> |
|
|
|
<TextBox Text="{Binding BatchPoint.Center.Z}"/> |
|
|
|
<TextBlock Text="Ширина: "/> |
|
|
|
<TextBlock Text="Длина и ширина основания: "/> |
|
|
|
<TextBox Text="{Binding BatchPoint.Width}"/> |
|
|
|
<TextBlock Text="Глубина:"/> |
|
|
|
<TextBox Text="{Binding BatchPoint.Depth}"/> |
|
|
|