private void GalleryMenu_ItemClick(object sender, DevExpress.Xpf.Bars.GalleryItemEventArgs e)
 {
     gallery.ScrollToGroupByIndex(galleryMenu.Gallery.Groups[0].Items.IndexOf(e.Item));
 }
 private void Gallery_ItemClick(object sender, DevExpress.Xpf.Bars.GalleryItemEventArgs e)
 {
     OpenImageViewPopup(e.Item);
 }