fix: 格式化碰撞报告窗口中检测间隙的显示
问题:检测间隙显示为0.05001768,精度过高不便阅读
解决:在XAML绑定中添加StringFormat={}{0:F2}格式化为两位小数
效果:现在显示为0.05,清晰易读
修改文件:
- CollisionReportDialog.xaml: 为DetectionGap绑定添加格式化
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
02ddc812cf
commit
40072e2eb7
@ -264,7 +264,7 @@ NavisworksTransport 碰撞检测报告对话框 - 采用与主界面一致的Nav
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Grid.Row="0" Text="检测间隙(米)" Style="{StaticResource StatisticLabelStyle}"/>
|
||||
<TextBlock Grid.Row="1" Text="{Binding DetectionGap}" Style="{StaticResource StatisticValueStyle}"/>
|
||||
<TextBlock Grid.Row="1" Text="{Binding DetectionGap, StringFormat={}{0:F2}}" Style="{StaticResource StatisticValueStyle}"/>
|
||||
</Grid>
|
||||
</Border>
|
||||
</UniformGrid>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user