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



In This Topic
    WpfVisualToolUndoMonitor Class
    In This Topic
    Undo monitor that monitors the Vintasoft.Imaging.Wpf.UI.VisualTools.WpfVisualTool object and adds undo action to an undo manager if Vintasoft.Imaging.Wpf.UI.VisualTools.WpfVisualTool changed an image.
    Object Model
    WpfVisualToolUndoMonitor ClassIDataStorage InterfaceUndoManager Class
    Syntax
    'Declaration
     
    Public Class WpfVisualToolUndoMonitor 
       Inherits Vintasoft.Imaging.Undo.UndoMonitor
    public class WpfVisualToolUndoMonitor : Vintasoft.Imaging.Undo.UndoMonitor 
    public __gc class WpfVisualToolUndoMonitor : public Vintasoft.Imaging.Undo.UndoMonitor 
    public ref class WpfVisualToolUndoMonitor : public Vintasoft.Imaging.Undo.UndoMonitor 
    Example
    This example shows how to monitor the visual tool changes in images.
    ''' <summary>
    ''' Creates the undo monitor for visual tool.
    ''' </summary>
    ''' <param name="undoManager">The undo manager.</param>
    ''' <param name="visualTool">The visual tool.</param>
    Public Shared Function CreateUndoMonitorForVisualTool(undoManager As Vintasoft.Imaging.Undo.UndoManager, visualTool As Vintasoft.Imaging.Wpf.UI.VisualTools.WpfVisualTool) As Vintasoft.Imaging.Wpf.UI.Undo.WpfVisualToolUndoMonitor
        ' create the undo monitor for visual tool
        Dim undoMonitor As New Vintasoft.Imaging.Wpf.UI.Undo.WpfVisualToolUndoMonitor(undoManager, visualTool)
                
        ' returns the undo monitor for visual tool
        Return undoMonitor
    End Function
    /// <summary>
    /// Creates the undo monitor for visual tool.
    /// </summary>
    /// <param name="undoManager">The undo manager.</param>
    /// <param name="visualTool">The visual tool.</param>
    public static Vintasoft.Imaging.Wpf.UI.Undo.WpfVisualToolUndoMonitor CreateUndoMonitorForVisualTool(
        Vintasoft.Imaging.Undo.UndoManager undoManager,
        Vintasoft.Imaging.Wpf.UI.VisualTools.WpfVisualTool visualTool)
    {
        // create the undo monitor for visual tool
        Vintasoft.Imaging.Wpf.UI.Undo.WpfVisualToolUndoMonitor undoMonitor =
            new Vintasoft.Imaging.Wpf.UI.Undo.WpfVisualToolUndoMonitor(undoManager, visualTool);
                
        // returns the undo monitor for visual tool
        return undoMonitor;
    }
    Inheritance Hierarchy

    System.Object
       Vintasoft.Imaging.Undo.UndoMonitor
          Vintasoft.Imaging.Wpf.UI.Undo.WpfVisualToolUndoMonitor

    Requirements

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

    See Also