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