VintaSoft Imaging .NET SDK v8.6
Vintasoft.Imaging.Wpf.UI.Undo Namespace / WpfImageViewerUndoMonitor Class
Members Example



In This Topic
    WpfImageViewerUndoMonitor Class
    In This Topic
    The undo monitor that monitors changes in the Vintasoft.Imaging.Wpf.UI.WpfImageViewer object.
    Object Model
    WpfImageViewerUndoMonitor ClassIDataStorage InterfaceImageCollectionUndoManagersDispatcher ClassUndoManager Class
    Syntax
    'Declaration
     
    Public Class WpfImageViewerUndoMonitor 
       Inherits Vintasoft.Imaging.Undo.UndoMonitor
    public class WpfImageViewerUndoMonitor : Vintasoft.Imaging.Undo.UndoMonitor 
    public __gc class WpfImageViewerUndoMonitor : public Vintasoft.Imaging.Undo.UndoMonitor 
    public ref class WpfImageViewerUndoMonitor : public Vintasoft.Imaging.Undo.UndoMonitor 
    Example
    This example shows how to monitor visual tools changes in images.
    ''' <summary>
    ''' Creates the undo monitor for image viewer.
    ''' </summary>
    ''' <param name="undoManager">The undo manager.</param>
    ''' <param name="imageViewer">The image viewer.</param>
    Public Shared Function CreateUndoMonitorForImageViewer(undoManager As Vintasoft.Imaging.Undo.UndoManager, imageViewer As Vintasoft.Imaging.Wpf.UI.WpfImageViewer) As Vintasoft.Imaging.Wpf.UI.Undo.WpfImageViewerUndoMonitor
        ' create the undo monitor for image viewer
        Dim undoMonitor As New Vintasoft.Imaging.Wpf.UI.Undo.WpfImageViewerUndoMonitor(undoManager, imageViewer)
                
        ' returns the undo monitor for image viewer
        Return undoMonitor
    End Function
    /// <summary>
    /// Creates the undo monitor for image viewer.
    /// </summary>
    /// <param name="undoManager">The undo manager.</param>
    /// <param name="imageViewer">The image viewer.</param>
    public static Vintasoft.Imaging.Wpf.UI.Undo.WpfImageViewerUndoMonitor CreateUndoMonitorForImageViewer(
        Vintasoft.Imaging.Undo.UndoManager undoManager,
        Vintasoft.Imaging.Wpf.UI.WpfImageViewer imageViewer)
    {
        // create the undo monitor for image viewer
        Vintasoft.Imaging.Wpf.UI.Undo.WpfImageViewerUndoMonitor undoMonitor =
            new Vintasoft.Imaging.Wpf.UI.Undo.WpfImageViewerUndoMonitor(undoManager, imageViewer);
                
        // returns the undo monitor for image viewer
        return undoMonitor;
    }
    Inheritance Hierarchy

    System.Object
       Vintasoft.Imaging.Undo.UndoMonitor
          Vintasoft.Imaging.Wpf.UI.Undo.WpfImageViewerUndoMonitor
             Vintasoft.Imaging.Annotation.Wpf.UI.Undo.WpfAnnotationViewerUndoMonitor

    Requirements

    Target Platforms: Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also