private void GalleryPreviewControl_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e) { InvalidateMeasure(); return; }