Skip to content

DataGrid causes lag when switching content #2504

@tomshane

Description

@tomshane

What steps will reproduce this issue?

I'm using basic WPF DataGrid with MahApps styles. When switching content in ContentControl the page containing the DataGrid causes noticeable lag when switching from it.

The lag is not present on an empty grid. But when it contains some rows (tested on 100 rows and 10 columns) the lag appears. When I disable MahApps and all other code stays in place, the lag is not present and the switching is instant.

I'm not sure but a clue could be DataGridCellHelper and DataGridCellUnloaded event.

Environment

  • MahApps.Metro v1.3.0-ALPHA150
  • Windows 10
  • Visual Studio 2015
  • .NET Framework 4.6

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions