VintaSoft Imaging .NET SDK v8.6
Vintasoft.Imaging.Wpf.UI.VisualTools.UserInteraction Namespace / WpfInteractionAreaAppearanceManager Class
Members Example



In This Topic
    WpfInteractionAreaAppearanceManager Class
    In This Topic
    Manages and stores the settings for interaction areas of visual tool.
    Object Model
    WpfInteractionAreaAppearanceManager ClassWpfUserInteractionVisualTool Class
    Syntax
    'Declaration
     
    Public Class WpfInteractionAreaAppearanceManager 
    public class WpfInteractionAreaAppearanceManager 
    public __gc class WpfInteractionAreaAppearanceManager 
    public ref class WpfInteractionAreaAppearanceManager 
    Example
    This example shows how to expand radius and change background color of resize and rotation points.
    ''' <summary>
    ''' Creates the custom interaction area appearance manager.
    ''' </summary>
    ''' <param name="visualTool">The visual tool.</param>
    ''' <returns>
    ''' The custom interaction area appearance manager.
    ''' </returns>
    Public Function CreateCustomInteractionAreaAppearanceManager(visualTool As Vintasoft.Imaging.Wpf.UI.VisualTools.UserInteraction.WpfUserInteractionVisualTool) As Vintasoft.Imaging.Wpf.UI.VisualTools.UserInteraction.WpfInteractionAreaAppearanceManager
        ' create manager
        Dim manager As New Vintasoft.Imaging.Wpf.UI.VisualTools.UserInteraction.WpfInteractionAreaAppearanceManager()
        manager.VisualTool = visualTool
                
        ' begin the initialization of manager
        manager.BeginInit()
                
        ' resize point
                
        manager.ResizePointsRadius = 10
        manager.ResizePointsInteractionRadius = 10
        manager.ResizePointsBackgroundColor = System.Windows.Media.Color.FromArgb(128, 255, 255, 0)
                
        ' rotation point
                
        manager.RotationPointDistance = 30
        manager.RotationPointRadius = 10
        manager.RotationPointInteractionRadius = 10
        manager.RotationPointBackgroundColor = System.Windows.Media.Color.FromArgb(128, 255, 192, 203)
                
        ' end the initialization of manager
        manager.EndInit()
                
        ' return the manager
        Return manager
    End Function
    /// <summary>
    /// Creates the custom interaction area appearance manager.
    /// </summary>
    /// <param name="visualTool">The visual tool.</param>
    /// <returns>
    /// The custom interaction area appearance manager.
    /// </returns>
    public Vintasoft.Imaging.Wpf.UI.VisualTools.UserInteraction.WpfInteractionAreaAppearanceManager CreateCustomInteractionAreaAppearanceManager(
        Vintasoft.Imaging.Wpf.UI.VisualTools.UserInteraction.WpfUserInteractionVisualTool visualTool)
    {
        // create manager
        Vintasoft.Imaging.Wpf.UI.VisualTools.UserInteraction.WpfInteractionAreaAppearanceManager manager = 
            new Vintasoft.Imaging.Wpf.UI.VisualTools.UserInteraction.WpfInteractionAreaAppearanceManager();
        manager.VisualTool = visualTool;
                
        // begin the initialization of manager
        manager.BeginInit();
                
        // resize point
                
        manager.ResizePointsRadius = 10;
        manager.ResizePointsInteractionRadius = 10;
        manager.ResizePointsBackgroundColor = System.Windows.Media.Color.FromArgb(128, 255, 255, 0);
                
        // rotation point
                
        manager.RotationPointDistance = 30;
        manager.RotationPointRadius = 10;
        manager.RotationPointInteractionRadius = 10;
        manager.RotationPointBackgroundColor = System.Windows.Media.Color.FromArgb(128, 255, 192, 203);
                
        // end the initialization of manager
        manager.EndInit();
                
        // return the manager
        return manager;
    }
    Inheritance Hierarchy

    System.Object
       Vintasoft.Imaging.Wpf.UI.VisualTools.UserInteraction.WpfInteractionAreaAppearanceManager

    Requirements

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

    See Also