#T:修复扫描界面编码问题。
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
<Setter Property="Foreground" Value="#333333"/>
|
||||
</Style>
|
||||
|
||||
<!-- 只读值,编辑时隐藏 -->
|
||||
<!-- 只读值,编辑时隐藏 -->
|
||||
<Style TargetType="TextBlock" x:Key="ReadOnlyValueStyle">
|
||||
<Setter Property="VerticalAlignment" Value="Center"/>
|
||||
<Setter Property="Margin" Value="4,2"/>
|
||||
@@ -36,7 +36,7 @@
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<!-- 纯只读值 -->
|
||||
<!-- 纯只读值 -->
|
||||
<Style TargetType="TextBlock" x:Key="ValueStyle">
|
||||
<Setter Property="VerticalAlignment" Value="Center"/>
|
||||
<Setter Property="Margin" Value="4,2"/>
|
||||
@@ -66,17 +66,17 @@
|
||||
<ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled">
|
||||
<StackPanel Margin="4">
|
||||
|
||||
<!-- 扫描文件 -->
|
||||
<!-- 扫描文件 -->
|
||||
<GroupBox Header="{loc:Localization Scan_Group_ScanFile}" Style="{StaticResource SectionGroupBox}">
|
||||
<StackPanel>
|
||||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,0,0,4">
|
||||
<Button Style="{StaticResource ToolbarBtnStyle}" Content="+"
|
||||
<Button Style="{StaticResource ToolbarBtnStyle}" Content="+"
|
||||
ToolTip="{loc:Localization Scan_Button_New}" Command="{Binding NewFileCommand}"/>
|
||||
<Button Style="{StaticResource ToolbarBtnStyle}" Content="??"
|
||||
<Button Style="{StaticResource ToolbarBtnStyle}" Content="📂"
|
||||
ToolTip="{loc:Localization Scan_Button_Load}" Command="{Binding LoadFileCommand}"/>
|
||||
<Button Style="{StaticResource ToolbarBtnStyle}" Content="?"
|
||||
<Button Style="{StaticResource ToolbarBtnStyle}" Content="✎"
|
||||
ToolTip="{loc:Localization Scan_Button_Edit}" Command="{Binding EditFileCommand}"/>
|
||||
<Button Style="{StaticResource ToolbarBtnStyle}" Content="?"
|
||||
<Button Style="{StaticResource ToolbarBtnStyle}" Content="✕"
|
||||
ToolTip="{loc:Localization Scan_Button_Delete}" Command="{Binding DeleteFileCommand}"
|
||||
Foreground="Red"/>
|
||||
</StackPanel>
|
||||
@@ -87,7 +87,7 @@
|
||||
</StackPanel>
|
||||
</GroupBox>
|
||||
|
||||
<!-- 对象信息 -->
|
||||
<!-- 对象信息 -->
|
||||
<GroupBox Header="{loc:Localization Scan_Group_Object}" Style="{StaticResource SectionGroupBox}">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
@@ -128,7 +128,7 @@
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
|
||||
<!-- 扫描参数 -->
|
||||
<!-- 扫描参数 -->
|
||||
<GroupBox Header="{loc:Localization Scan_Group_General}" Style="{StaticResource SectionGroupBox}">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
@@ -148,7 +148,7 @@
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<!-- 扫描模式 -->
|
||||
<!-- 扫描模式 -->
|
||||
<TextBlock Grid.Row="0" Grid.Column="0" Text="{loc:Localization Scan_Text_ScanProcedure}" Style="{StaticResource LabelStyle}"/>
|
||||
<TextBlock Grid.Row="0" Grid.Column="1" Text="{Binding SelectedScanType}"
|
||||
Style="{StaticResource ReadOnlyValueStyle}"/>
|
||||
@@ -158,7 +158,7 @@
|
||||
Visibility="{Binding IsEditMode, Converter={StaticResource BoolToVis}}"
|
||||
Height="24" FontSize="11" Margin="4,2"/>
|
||||
|
||||
<!-- 精度模式 -->
|
||||
<!-- 精度模式 -->
|
||||
<TextBlock Grid.Row="1" Grid.Column="0" Text="{loc:Localization Scan_Text_Precision}" Style="{StaticResource LabelStyle}"/>
|
||||
<TextBlock Grid.Row="1" Grid.Column="1" Text="{Binding SelectedPrecision}"
|
||||
Style="{StaticResource ReadOnlyValueStyle}"/>
|
||||
@@ -169,7 +169,7 @@
|
||||
Visibility="{Binding IsEditMode, Converter={StaticResource BoolToVis}}"
|
||||
Height="24" FontSize="11" Margin="4,2"/>
|
||||
|
||||
<!-- 文件路径 -->
|
||||
<!-- 文件路径 -->
|
||||
<TextBlock Grid.Row="2" Grid.Column="0" Text="{loc:Localization Scan_Text_ProjectionPath}" Style="{StaticResource LabelStyle}"/>
|
||||
<TextBlock Grid.Row="2" Grid.Column="1" Text="{Binding ProjectionPath}"
|
||||
TextTrimming="CharacterEllipsis" ToolTip="{Binding ProjectionPath}"
|
||||
@@ -178,7 +178,7 @@
|
||||
Visibility="{Binding IsEditMode, Converter={StaticResource BoolToVis}}"
|
||||
Height="22" FontSize="11" Margin="4,2"/>
|
||||
|
||||
<!-- 投影张数 -->
|
||||
<!-- 投影张数 -->
|
||||
<TextBlock Grid.Row="3" Grid.Column="0" Text="{loc:Localization Scan_Text_Projections}" Style="{StaticResource LabelStyle}"/>
|
||||
<TextBlock Grid.Row="3" Grid.Column="1" Text="{Binding ProjectionCount}"
|
||||
Style="{StaticResource ReadOnlyValueStyle}"/>
|
||||
@@ -189,7 +189,7 @@
|
||||
Height="24" FontSize="11" Margin="4,2"
|
||||
telerik:StyleManager.Theme="Crystal"/>
|
||||
|
||||
<!-- 旋转角度 -->
|
||||
<!-- 旋转角度 -->
|
||||
<TextBlock Grid.Row="4" Grid.Column="0" Text="{loc:Localization Scan_Text_RotationAngleUnit}" Style="{StaticResource LabelStyle}"/>
|
||||
<TextBlock Grid.Row="4" Grid.Column="1" Text="{Binding RotationAngle}"
|
||||
Style="{StaticResource ReadOnlyValueStyle}"/>
|
||||
@@ -200,7 +200,7 @@
|
||||
Height="24" FontSize="11" Margin="4,2"
|
||||
telerik:StyleManager.Theme="Crystal"/>
|
||||
|
||||
<!-- 帧合并 -->
|
||||
<!-- 帧合并 -->
|
||||
<TextBlock Grid.Row="5" Grid.Column="0" Text="{loc:Localization Scan_Text_Integration}" Style="{StaticResource LabelStyle}"/>
|
||||
<TextBlock Grid.Row="5" Grid.Column="1" Text="{Binding MergeLevel}"
|
||||
Style="{StaticResource ReadOnlyValueStyle}"/>
|
||||
@@ -211,7 +211,7 @@
|
||||
Height="24" FontSize="11" Margin="4,2"
|
||||
telerik:StyleManager.Theme="Crystal"/>
|
||||
|
||||
<!-- PCT 专有:倾斜角度 -->
|
||||
<!-- PCT 专有:倾斜角度 -->
|
||||
<TextBlock Grid.Row="6" Grid.Column="0" Text="{loc:Localization Scan_Text_TiltAngle}" Style="{StaticResource LabelStyle}"
|
||||
Visibility="{Binding IsPCT, Converter={StaticResource BoolToVis}}"/>
|
||||
<TextBlock Grid.Row="6" Grid.Column="1" Text="{Binding TiltAngle}"
|
||||
@@ -224,7 +224,7 @@
|
||||
Height="24" FontSize="11" Margin="4,2"
|
||||
telerik:StyleManager.Theme="Crystal"/>
|
||||
|
||||
<!-- PCT 专有:样品厚度 -->
|
||||
<!-- PCT 专有:样品厚度 -->
|
||||
<TextBlock Grid.Row="7" Grid.Column="0" Text="{loc:Localization Scan_Text_SampleThickness}" Style="{StaticResource LabelStyle}"
|
||||
Visibility="{Binding IsPCT, Converter={StaticResource BoolToVis}}"/>
|
||||
<TextBlock Grid.Row="7" Grid.Column="1" Text="{Binding SampleThickness}"
|
||||
@@ -237,13 +237,13 @@
|
||||
Height="24" FontSize="11" Margin="4,2"
|
||||
telerik:StyleManager.Theme="Crystal"/>
|
||||
|
||||
<!-- PCT 专有:虚拟旋转中心 -->
|
||||
<!-- PCT 专有:虚拟旋转中心 -->
|
||||
<CheckBox Grid.Row="8" Grid.Column="0" Grid.ColumnSpan="2"
|
||||
Content="{loc:Localization Scan_Text_EnableVirtualCenter}" IsChecked="{Binding VirtualRotationEnabled}"
|
||||
Visibility="{Binding IsPCT, Converter={StaticResource BoolToVis}}"
|
||||
IsEnabled="{Binding IsEditMode}"
|
||||
Margin="4,4" FontSize="11"/>
|
||||
<!-- PCT 专有:自动中心 -->
|
||||
<!-- PCT 专有:自动中心 -->
|
||||
<CheckBox Grid.Row="9" Grid.Column="0" Grid.ColumnSpan="2"
|
||||
Content="{loc:Localization Scan_Text_AutoCenter}" IsChecked="{Binding AutoCenter}"
|
||||
Visibility="{Binding IsPCT, Converter={StaticResource BoolToVis}}"
|
||||
@@ -252,7 +252,7 @@
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
|
||||
<!-- 射线源与探测器 -->
|
||||
<!-- 射线源与探测器 -->
|
||||
<GroupBox Header="{loc:Localization Scan_Group_XRayDetector}" Style="{StaticResource SectionGroupBox}">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
@@ -273,7 +273,7 @@
|
||||
|
||||
<TextBlock Grid.Row="1" Grid.Column="0" Text="{loc:Localization Scan_Text_TubeCurrent}" Style="{StaticResource LabelStyle}"/>
|
||||
<TextBlock Grid.Row="1" Grid.Column="1" Style="{StaticResource ValueStyle}">
|
||||
<Run Text="{Binding Current, Mode=OneWay}"/><Run Text=" μA"/>
|
||||
<Run Text="{Binding Current, Mode=OneWay}"/><Run Text=" μA"/>
|
||||
</TextBlock>
|
||||
|
||||
<TextBlock Grid.Row="2" Grid.Column="0" Text="{loc:Localization Scan_Text_Focus}" Style="{StaticResource LabelStyle}"/>
|
||||
@@ -284,7 +284,7 @@
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
|
||||
<!-- 只读模式:开始/停止 -->
|
||||
<!-- 只读模式:开始/停止 -->
|
||||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="4,8"
|
||||
Visibility="{Binding IsReadOnlyMode, Converter={StaticResource BoolToVis}}">
|
||||
<Button Content="{loc:Localization Scan_Button_StartScan}" Width="110" Height="30" Margin="4"
|
||||
@@ -299,7 +299,7 @@
|
||||
IsEnabled="{Binding CanStopScan}" Cursor="Hand"/>
|
||||
</StackPanel>
|
||||
|
||||
<!-- 编辑模式:保存/取消 -->
|
||||
<!-- 编辑模式:保存/取消 -->
|
||||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="4,8"
|
||||
Visibility="{Binding IsEditMode, Converter={StaticResource BoolToVis}}">
|
||||
<Button Content="{loc:Localization Scan_Button_Save}" Width="90" Height="30" Margin="4"
|
||||
@@ -312,7 +312,7 @@
|
||||
Command="{Binding CancelEditCommand}" Cursor="Hand"/>
|
||||
</StackPanel>
|
||||
|
||||
<!-- 状态(仅只读模式显示) -->
|
||||
<!-- 状态(仅只读模式显示) -->
|
||||
<GroupBox Header="{loc:Localization Scan_Group_Status}" Style="{StaticResource SectionGroupBox}"
|
||||
Visibility="{Binding IsReadOnlyMode, Converter={StaticResource BoolToVis}}">
|
||||
<StackPanel>
|
||||
|
||||
Reference in New Issue
Block a user