LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.31
ControlPoint Property
See Also 
Leadtools.Windows.Annotations Namespace > AnnAutomationManager Class : ControlPoint Property



The ControlPoint Property supports WPF/Silverlight.

The ControlPoint Property is available in LEADTOOLS Document and Medical Imaging toolkits.

Gets or sets the System.Windows.Controls.Primitives.Thumb object for all AnnEditDesigner derived classes. Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Public Property ControlPoint As Thumb
Visual Basic (Usage)Copy Code
Dim instance As AnnAutomationManager
Dim value As Thumb
 
instance.ControlPoint = value
 
value = instance.ControlPoint
C# 
public Thumb ControlPoint {get; set;}
C++/CLI 
public:
property Thumb^ ControlPoint {
   Thumb^ get();
   void set (    Thumb^ value);
}

Property Value

The System.Windows.Controls.Primitives.Thumb object for all AnnEditDesigner derived classes.

Example

Visual BasicCopy Code
Private Sub AnnAutomationManager_ControlPoint(ByVal manager As AnnAutomationManager)
   ' Use a thumb with red brush (alpha = 128)
   Dim cp As Thumb = New Thumb()
   cp.BorderBrush = Brushes.Black
   cp.BorderThickness = New Thickness(1.0)
   cp.Background = New SolidColorBrush(Color.FromArgb(128, 255, 0, 0))
   cp.Width = 12
   cp.Height = 12
   manager.ControlPoint = cp
   ' now, whenever you draw or select an object in this manager, this control point will be used
End Sub
C#Copy Code
private void AnnAutomationManager_ControlPoint(AnnAutomationManager manager)
{
   // Use a thumb with red brush (alpha = 128)
   Thumb cp = new Thumb();
   cp.BorderBrush = Brushes.Black;
   cp.BorderThickness = new Thickness(1.0);
   cp.Background = new SolidColorBrush(Color.FromArgb(128, 255, 0, 0));
   cp.Width = cp.Height = 12;
   manager.ControlPoint = cp;
   // now, whenever you draw or select an object in this manager, this control point will be used
}
SilverlightCSharpCopy Code
private void AnnAutomationManager_ControlPoint(AnnAutomationManager manager)
{
   // Use a thumb with red brush (alpha = 128)
   Thumb cp = new Thumb();
   cp.BorderBrush = new SolidColorBrush(Colors.Black);
   cp.BorderThickness = new Thickness(1.0);
   cp.Background = new SolidColorBrush(Color.FromArgb(128, 255, 0, 0));
   cp.Width = cp.Height = 12;
   manager.ControlPoint = cp;
   // now, whenever you draw or select an object in this manager, this control point will be used
}
SilverlightVBCopy Code
Private Sub AnnAutomationManager_ControlPoint(ByVal manager As AnnAutomationManager)
   ' Use a thumb with red brush (alpha = 128)
   Dim cp As Thumb = New Thumb()
   cp.BorderBrush = New SolidColorBrush(Colors.Black)
   cp.BorderThickness = New Thickness(1.0)
   cp.Background = New SolidColorBrush(Color.FromArgb(128, 255, 0, 0))
   cp.Width = 12
   cp.Height = 12
   manager.ControlPoint = cp
   ' now, whenever you draw or select an object in this manager, this control point will be used
End Sub

Remarks

When the automation framework uses reflection to create any of the AnnAutomationObject.EditDesignerType, it will use this value in the created AnnEditDesigner.AnnEditDesigner.ControlPoints collection.

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also

ControlPoint requires a Document/Medical product license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features and Unlocking Special LEAD Features.