VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
In This Topic
    How to add text on thumbnails in WPF thumbnail viewer?
    In This Topic
    Here is C#/VB.NET code that shows how to add caption for thumbnails in WPF UI-control WpfThumbnailViewer:
    Vintasoft.Imaging.Wpf.UI.ThumbnailImageItemCaption caption = thumbnailViewer1.ThumbnailCaption;
    
    caption.IsVisible = true;
    caption.CaptionFormat = "{PageNumber} page";
    caption.Anchor = Vintasoft.Imaging.AnchorType.Bottom;
    caption.TextColor = System.Windows.Media.Colors.Blue;
    caption.FontFamily = System.Windows.SystemFonts.CaptionFontFamily;
    caption.FontSize = 18;
    
    Dim caption As Vintasoft.Imaging.Wpf.UI.ThumbnailImageItemCaption = thumbnailViewer1.ThumbnailCaption
    
    caption.IsVisible = True
    caption.CaptionFormat = "{PageNumber} page"
    caption.Anchor = Vintasoft.Imaging.AnchorType.Bottom
    caption.TextColor = System.Windows.Media.Colors.Blue
    caption.FontFamily = System.Windows.SystemFonts.CaptionFontFamily
    caption.FontSize = 18