修复窗口大小问题
This commit is contained in:
@@ -11,9 +11,8 @@
|
||||
Title="轨道创建"
|
||||
Width="420"
|
||||
Height="720"
|
||||
SizeToContent="Height"
|
||||
d:DataContext="{d:DesignInstance Type=local:TrackCreatorViewModel}"
|
||||
|
||||
SizeToContent="Height"
|
||||
mc:Ignorable="d">
|
||||
<controls:MaterialWindow.Resources>
|
||||
<ResourceDictionary Source="pack://application:,,,/Szmedi.RvKits;component/WPFUI.xaml" />
|
||||
@@ -35,15 +34,18 @@
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<GroupBox Grid.Row="0" Grid.Column="0" Header="轨道">
|
||||
<GroupBox
|
||||
Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
Header="轨道">
|
||||
<StackPanel>
|
||||
<ComboBox
|
||||
materialDesign:HintAssist.Hint="轨道轮廓类型"
|
||||
ItemTemplate="{StaticResource MultiDisplayMemberPath}"
|
||||
ItemsSource="{Binding ProfileFamilyTypesView}"
|
||||
DisplayMemberPath="FullName"
|
||||
IsEditable="True"
|
||||
Text="{Binding SearchProfileText,UpdateSourceTrigger=PropertyChanged}"
|
||||
ItemsSource="{Binding ProfileFamilyTypesView, Mode=OneWay}"
|
||||
SelectedItem="{Binding SelectedProfileFamilyType, UpdateSourceTrigger=PropertyChanged}"
|
||||
Text="{Binding SearchProfileText, UpdateSourceTrigger=PropertyChanged}"
|
||||
ToolTip="未选择则不创建,
右键点击清除选择">
|
||||
<b:Interaction.Triggers>
|
||||
<b:EventTrigger EventName="MouseRightButtonUp">
|
||||
@@ -54,8 +56,10 @@
|
||||
<ComboBox
|
||||
materialDesign:HintAssist.Hint="轨道材质"
|
||||
DisplayMemberPath="Name"
|
||||
ItemsSource="{Binding Materials, Mode=OneWay}"
|
||||
IsEditable="True"
|
||||
ItemsSource="{Binding MaterialsView, Mode=OneWay}"
|
||||
SelectedItem="{Binding SelectedMaterial, UpdateSourceTrigger=PropertyChanged}"
|
||||
Text="{Binding SearchMaterialText, UpdateSourceTrigger=PropertyChanged}"
|
||||
ToolTip="未选择无材质,
右键点击清除选择">
|
||||
<b:Interaction.Triggers>
|
||||
<b:EventTrigger EventName="MouseRightButtonUp">
|
||||
@@ -77,15 +81,18 @@
|
||||
ToolTip="向上偏移设置为正值,
向下偏移为负值" />
|
||||
</StackPanel>
|
||||
</GroupBox>
|
||||
<GroupBox Grid.Row="0" Grid.Column="1" Header="扣件、轨枕">
|
||||
<GroupBox
|
||||
Grid.Row="0"
|
||||
Grid.Column="1"
|
||||
Header="扣件、轨枕">
|
||||
<StackPanel>
|
||||
<ComboBox
|
||||
materialDesign:HintAssist.Hint="扣件或轨枕类型"
|
||||
ItemTemplate="{StaticResource MultiDisplayMemberPath}"
|
||||
ItemsSource="{Binding FamilyTypesView}"
|
||||
DisplayMemberPath="FullName"
|
||||
IsEditable="True"
|
||||
Text="{Binding SearchFamilyText,UpdateSourceTrigger=PropertyChanged}"
|
||||
ItemsSource="{Binding FamilyTypesView, Mode=OneWay}"
|
||||
SelectedItem="{Binding SelectedFamilyType, UpdateSourceTrigger=PropertyChanged}"
|
||||
Text="{Binding SearchFamilyText, UpdateSourceTrigger=PropertyChanged}"
|
||||
ToolTip="未选择则不创建,
右键点击清除选择">
|
||||
<b:Interaction.Triggers>
|
||||
<b:EventTrigger EventName="MouseRightButtonUp">
|
||||
@@ -115,9 +122,18 @@
|
||||
</Grid>
|
||||
<GroupBox Grid.Row="2" Header="中心线类型">
|
||||
<UniformGrid VerticalAlignment="Center" Rows="1">
|
||||
<RadioButton Content="模型线" IsChecked="{Binding CenterCurveType, ConverterParameter={x:Static local:CenterCurveType.ModelCurve}, Converter={StaticResource ComparisonConverter}}" ToolTip="框选连续、非闭合的模型线并在工具栏完成选择,
模型线的定位平面为绘制时的工作平面,
如在楼层楼层平面为该楼层高度" />
|
||||
<RadioButton Content="体量族" IsChecked="{Binding CenterCurveType, ConverterParameter={x:Static local:CenterCurveType.MassCurve}, Converter={StaticResource ComparisonConverter}}" ToolTip="体量族中仅包含有一条连续的三维曲线" />
|
||||
<RadioButton Content="dwg链接" IsChecked="{Binding CenterCurveType, ConverterParameter={x:Static local:CenterCurveType.DWGCurve}, Converter={StaticResource ComparisonConverter}}" ToolTip="dwg中仅有一条连续的三维曲线" />
|
||||
<RadioButton
|
||||
Content="模型线"
|
||||
IsChecked="{Binding CenterCurveType, ConverterParameter={x:Static local:CenterCurveType.ModelCurve}, Converter={StaticResource ComparisonConverter}}"
|
||||
ToolTip="框选连续、非闭合的模型线并在工具栏完成选择,
模型线的定位平面为绘制时的工作平面,
如在楼层楼层平面为该楼层高度" />
|
||||
<RadioButton
|
||||
Content="体量族"
|
||||
IsChecked="{Binding CenterCurveType, ConverterParameter={x:Static local:CenterCurveType.MassCurve}, Converter={StaticResource ComparisonConverter}}"
|
||||
ToolTip="体量族中仅包含有一条连续的三维曲线" />
|
||||
<RadioButton
|
||||
Content="dwg链接"
|
||||
IsChecked="{Binding CenterCurveType, ConverterParameter={x:Static local:CenterCurveType.DWGCurve}, Converter={StaticResource ComparisonConverter}}"
|
||||
ToolTip="dwg中仅有一条连续的三维曲线" />
|
||||
</UniformGrid>
|
||||
</GroupBox>
|
||||
<UniformGrid Grid.Row="3" Rows="1">
|
||||
@@ -132,7 +148,10 @@
|
||||
Content="两侧布置"
|
||||
IsChecked="{Binding IsTwoSides}"
|
||||
ToolTip="截面或者实例是否在中心线另一侧创建或布置" />
|
||||
<Button Command="{Binding CreateTrackCommand}" Content="创建" ToolTip="选择合适的选项,创建模型。
注意:两根模型线之间若角度极小,
可作为一条直线时,使用一条直线代替" />
|
||||
<Button
|
||||
Command="{Binding CreateTrackCommand}"
|
||||
Content="创建"
|
||||
ToolTip="选择合适的选项,创建模型。
注意:两根模型线之间若角度极小,
可作为一条直线时,使用一条直线代替" />
|
||||
</UniformGrid>
|
||||
</Grid>
|
||||
</controls:MaterialWindow>
|
||||
|
||||
Reference in New Issue
Block a user