LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly)
LEAD Technologies, Inc

ControlPoint Property

Example 





Gets or sets the System.Windows.Controls.Primitives.Thumb object for all AnnEditDesigner derived classes. .NET support Silverlight support
Syntax
public Thumb ControlPoint {get; set;}
'Declaration
 
Public Property ControlPoint As Thumb
'Usage
 
Dim instance As AnnAutomationManager
Dim value As Thumb
 
instance.ControlPoint = value
 
value = instance.ControlPoint
public Thumb ControlPoint {get; set;}
 get_ControlPoint();
set_ControlPoint(value);
public:
property Thumb^ ControlPoint {
   Thumb^ get();
   void set (    Thumb^ value);
}

Property Value

The System.Windows.Controls.Primitives.Thumb object for all AnnEditDesigner derived classes.
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.

Example
Copy CodeCopy 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
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
}
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
}
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
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

AnnAutomationManager Class
AnnAutomationManager Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.