Skip to content

Commit

Permalink
Fixes #173 by refreshing GalleryPanel when items are changed
Browse files Browse the repository at this point in the history
  • Loading branch information
batzen committed Sep 30, 2015
1 parent 7ba3e1e commit 48067f8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Fluent/Controls/GalleryPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using System.Reflection;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Media;
using System.Windows.Threading;
Expand Down Expand Up @@ -607,5 +608,12 @@ protected override IEnumerator LogicalChildren
}
}
}

protected override void OnItemsChanged(object sender, ItemsChangedEventArgs args)
{
base.OnItemsChanged(sender, args);

this.Dispatcher.BeginInvoke(DispatcherPriority.Background, (Action)(this.Refresh));
}
}
}

0 comments on commit 48067f8

Please sign in to comment.