Closed sergeypyrkin closed 6 years ago
@sergeypyrkin It would be nice if you can add a link to your test application. You also forgot to say which MahApps version you tested.
1.5.0 it last
@sergeypyrkin
1) Compile and run your application gives me many BindingExpression warnings at the output window in VS.
System.Windows.Data Error: 40 : BindingExpression path error: 'FlagDel' property not found on 'object' ''Item' (HashCode=16974962)'. BindingExpression:Path=FlagDel; DataItem='Item' (HashCode=16974962); target element is 'ListViewItem' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 40 : BindingExpression path error: 'IsWarning' property not found on 'object' ''Item' (HashCode=16974962)'. BindingExpression:Path=IsWarning; DataItem='Item' (HashCode=16974962); target element is 'ListViewItem' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 40 : BindingExpression path error: 'IsCritical' property not found on 'object' ''Item' (HashCode=16974962)'. BindingExpression:Path=IsCritical; DataItem='Item' (HashCode=16974962); target element is 'ListViewItem' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 40 : BindingExpression path error: 'isBallParse' property not found on 'object' ''Item' (HashCode=16974962)'. BindingExpression:Path=isBallParse; DataItem='Item' (HashCode=16974962); target element is 'ListViewItem' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 40 : BindingExpression path error: 'FlagGenerated' property not found on 'object' ''Item' (HashCode=16974962)'. BindingExpression:Path=FlagGenerated; DataItem='Item' (HashCode=16974962); target element is 'ListViewItem' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 40 : BindingExpression path error: 'FlagUpdate' property not found on 'object' ''Item' (HashCode=16974962)'. BindingExpression:Path=FlagUpdate; DataItem='Item' (HashCode=16974962); target element is 'ListViewItem' (Name=''); target property is 'NoTarget' (type 'Object')
System.Windows.Data Error: 40 : BindingExpression path error: 'FlagSaved' property not found on 'object' ''Item' (HashCode=16974962)'. BindingExpression:Path=FlagSaved; DataItem='Item' (HashCode=16974962); target element is 'ListViewItem' (Name=''); target property is 'NoTarget' (type 'Object')
2) Your work routine which creates these random stuff blocks the UI
and save time of iteration last time of iteration write in right bottom textbox left bottom textbox - its average
Your work routine which creates these random stuff blocks the UI
yes , i think you right but add clearstyles <ListView Style="{StaticResource clearListView} . and you see how fast it's will be
i test pure wpf or metro + clearstyle with 2000 items or more, and i no see any block UI. Or time of block will be small. But pure metro with 1000 items take long block
@sergeypyrkin Ok, found the reason. The default ListView style doesn't use virtualizing. So changing to Style="{StaticResource VirtualisedMetroListView}"
fixes this.
yes) i test just now - it work
Hi I testing speed of updatting datagrid; for 1) pure wpf 2) metro 3) metro + clearstyles
wht is clearstyles <ListView Style="{StaticResource clearListView} ......
where clearListView is empty style
My control ` <ListView x:Name="dataGridView1" Grid.Row="1" Grid.Column="0" Margin="3" HorizontalAlignment="Stretch" BorderBrush="#FF25A0DA" BorderThickness="1" FontFamily="Microsoft Sans Serif" FontSize="11" Foreground="#FF000000" IsTextSearchEnabled="False" KeyboardNavigation.DirectionalNavigation="Cycle"
`
what time i calculate
dataGridView1.ItemsSource = items.OrderBy(o => o.A1).ThenBy(o => o.A2).ThenBy(o => o.A3).ThenBy(o => o.A4); dataGridView1.Items.Refresh();
RESULT