修改预计算分析列表滚动条和数量限制
This commit is contained in:
parent
98c55045ad
commit
b36d20933e
@ -2755,7 +2755,7 @@ namespace NavisworksTransport.UI.WPF.ViewModels
|
||||
Count = g.Count(),
|
||||
Percentage = (double)g.Count() / results.Count * 100
|
||||
})
|
||||
.Where(x => x.Count >= 5 || x.Percentage > 10) // 只关注高频物体
|
||||
.Where(x => x.Count >= 10 || x.Percentage > 10) // 只关注高频物体
|
||||
.OrderByDescending(x => x.Count)
|
||||
.ToList();
|
||||
|
||||
|
||||
@ -96,17 +96,20 @@
|
||||
<!-- 热点列表 -->
|
||||
<Border Grid.Row="3" BorderBrush="{StaticResource NavisworksLightBrush}"
|
||||
BorderThickness="1" CornerRadius="3" Margin="0,0,0,12">
|
||||
<DataGrid x:Name="HotspotsDataGrid"
|
||||
AutoGenerateColumns="False"
|
||||
CanUserAddRows="False"
|
||||
SelectionMode="Single"
|
||||
GridLinesVisibility="Horizontal"
|
||||
BorderThickness="0"
|
||||
HeadersVisibility="Column"
|
||||
RowBackground="White"
|
||||
AlternatingRowBackground="{StaticResource NavisworksBackgroundBrush}"
|
||||
MinHeight="350"
|
||||
SelectionChanged="HotspotsDataGrid_SelectionChanged">
|
||||
<ScrollViewer VerticalScrollBarVisibility="Auto"
|
||||
HorizontalScrollBarVisibility="Disabled">
|
||||
<DataGrid x:Name="HotspotsDataGrid"
|
||||
AutoGenerateColumns="False"
|
||||
CanUserAddRows="False"
|
||||
SelectionMode="Single"
|
||||
GridLinesVisibility="Horizontal"
|
||||
BorderThickness="0"
|
||||
HeadersVisibility="Column"
|
||||
RowBackground="White"
|
||||
AlternatingRowBackground="{StaticResource NavisworksBackgroundBrush}"
|
||||
MinHeight="350"
|
||||
MaxHeight="450"
|
||||
SelectionChanged="HotspotsDataGrid_SelectionChanged">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Header="序号" Width="45"
|
||||
Binding="{Binding Index}" IsReadOnly="True">
|
||||
@ -157,7 +160,8 @@
|
||||
</DataGridTextColumn.ElementStyle>
|
||||
</DataGridTextColumn>
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
</DataGrid>
|
||||
</ScrollViewer>
|
||||
</Border>
|
||||
|
||||
<!-- 选中物体详情 -->
|
||||
|
||||
Loading…
Reference in New Issue
Block a user