LEADTOOLS WPF and Silverlight (Leadtools.Windows.Controls assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
Stroke Property
See Also 
Leadtools.Windows.Controls Namespace > ImagePanViewer Class : Stroke Property



Gets or sets brush used to draw the pan rectangle. Supported in Silverlight, Windows Phone 7

Syntax

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

Property Value

An System.Windows.Media.Brush object which is used to draw the pan rectangle. Default value is red System.Windows.Media.SolidColorBrush.

Example

For XAML example, refer to ImagePanViewer.

For C#/VB examples, refer to ImagePanViewer.

Remarks

The control draws the pan rectangle using the Stroke as its color, StrokeThickness as the size of the rectangle border in pixels. You can fill the area inside the pan rectangle with InnerBrush and the area outside the pan rectangle with OuterBrush.

Requirements

Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also