private void SetupOnHoverImage(QueryTooltipArgs args, Photo photo) { var customTooltip = new PreviewPhotoWidget(photo); args.Tooltip.Custom = customTooltip; args.RetVal = true; }
private void SetupOnHoverImage(QueryTooltipArgs args, IGridWidgetItem photo) { if (photo == null) { return; } if (photo.GetType() == typeof (Photo)) { var previewPhotoTooltip = new PreviewPhotoWidget((Photo) photo); args.Tooltip.Custom = previewPhotoTooltip; } else { var albumName = ((Photoset) photo).HtmlEncodedTitle; var albumNameToolTip = new Label(albumName); albumNameToolTip.UseMarkup = true; args.Tooltip.Custom = albumNameToolTip; } args.RetVal = true; }
private void SetupOnHoverImage(QueryTooltipArgs args, IGridWidgetItem photo) { if (photo == null) { return; } if (photo.GetType() == typeof(Photo)) { var previewPhotoTooltip = new PreviewPhotoWidget((Photo)photo); args.Tooltip.Custom = previewPhotoTooltip; } else { var albumName = ((Photoset)photo).HtmlEncodedTitle; var albumNameToolTip = new Label(albumName); albumNameToolTip.UseMarkup = true; args.Tooltip.Custom = albumNameToolTip; } args.RetVal = true; }