Skip to content

MetroProgressBar performance issue #1855

@kgroener

Description

@kgroener

Hello,

In my current project I'm using MahApps.Metro V1.1.2.0.
In one of my UserControls I tried to use the Controls:MetroProgressBar as shown in the following code:

<ItemsControl ItemsSource="{Binding Items}" >
   <ItemsControl.ItemTemplate>
      <DataTemplate>
         <Grid>
            (...)

            <Controls:MetroProgressBar
               Grid.Row="1"
               Grid.ColumnSpan="3"
               IsIndeterminate="{Binding Item.IsBusy}"
               Visibility="{Binding Item.IsBusy,
               Converter={StaticResource boolToVisConverter}}" />

            (...)
        </Grid>
      </DataTemplate>
   </ItemsControl.ItemTemplate>
</ItemsControl>

But once I start the application and the progressbars are shown, the application gets terribly slow and the bars are really laggy.

When I use the default ProgressBar instead of the MetroProgressBar, the application works just fine.

Trying to find out what could be causing this, I found that while the progress bars were shown the application was using increasingly more physical memory as if there was a memory leak of some sort.

I'm not sure why this is happening, but thought you should know.

Best regards,

Koen

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions