Leadtools.Windows.Controls Send comments on this topic. | Back to Introduction - LEADTOOLS WPF | Help Version 16.5.9.25
Crosshair Property
See Also 
Leadtools.Windows.Controls Namespace > MagnifyGlass Class : Crosshair Property





Gets or sets the type of the crosshair. This is a dependency property.

Syntax

Visual Basic (Declaration) 
Public Property Crosshair As MagnifyGlassCrosshair
Visual Basic (Usage)Copy Code
Dim instance As MagnifyGlass
Dim value As MagnifyGlassCrosshair
 
instance.Crosshair = value
 
value = instance.Crosshair
C# 
public MagnifyGlassCrosshair Crosshair {get; set;}
C++/CLI 
public:
property MagnifyGlassCrosshair Crosshair {
   MagnifyGlassCrosshair get();
   void set (MagnifyGlassCrosshair value);
}
XAML Attributes Usage 

<object Crosshair=Leadtools.Windows.Controls.MagnifyGlassCrosshair .../>

Dependencies Property Information 

Identifier field

CrosshairProperty

Metadata properties set to true

AffectsRender

XAML Attributes Usage 

<object Crosshair=Leadtools.Windows.Controls.MagnifyGlassCrosshair .../>

Dependencies Property Information 

Identifier field

CrosshairProperty

Metadata properties set to true

AffectsRender

Return Value

The Crosshair type.

Example

For XAML example, refer to Shape.

For C#/VB examples, refer to Shape.

Remarks

The use of the MagnifyGlass.CrosshairThickness and MagnifyGlass.CrosshairBrush properties depend on the value of this property.
  • If it is set to MagnifyGlassCrosshair.Fine both of them will be used.
  • If it is set to MagnifyGlassCrosshair.None neither of them will be used.
  • Requirements

    Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family

    See Also