Leadtools.Windows.Controls Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.03.25
Source Property
See Also 
Leadtools.Windows.Controls Namespace > BitmapSourceViewer Class : Source Property





This member is available in the WPF Express Edition. See the LEADTOOLS products page for full details on more WPF features available with LEADTOOLS toolkits.

Gets or sets the BitmapSource for the BitmapSourceViewer. This is a dependency property.

Syntax

Visual Basic (Declaration) 
Public Property Source As BitmapSource
Visual Basic (Usage)Copy Code
Dim instance As BitmapSourceViewer
Dim value As BitmapSource
 
instance.Source = value
 
value = instance.Source
C# 
public BitmapSource Source {get; set;}
Managed Extensions for C++ 
public: __property BitmapSource get_Source();
public: __property void set_Source( 
   BitmapSource value
);
C++/CLI 
public:
property BitmapSource Source {
   BitmapSource get();
   void set (BitmapSource value);
}
XAML 
For XAML information, see the BitmapSource type.
XAML Attributes Usage 

<object Source=imageUri/>

Dependency Property Information 

Identifier field

SourceProperty

Metadata properties set to true

None

XAML Values 

imageUri System.String A URI of the image file.

Return Value

The source value for the BitmapSourceViewer. The default value is a null.

Example

For XAML example, refer to BitmapSourceViewer.

For C#/VB examples, refer to BitmapSourceViewer.

Requirements

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

See Also