Visual Basic (Declaration) | |
---|---|
Public Property Source As BitmapSource |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public BitmapSource Source {get; set;} |
C++/CLI | |
---|---|
public: property BitmapSource Source { BitmapSource get(); void set (BitmapSource value); } |
XAML Syntax | |
---|---|
For XAML information, see the BitmapSource type. |
XAML Attributes Usage | |
---|---|
<object Source=imageUri/> |
Dependencies Property Information | |
---|---|
Identifier field | |
Metadata properties set to true | None |
XAML Values | |
---|---|
imageUri System.String A URI of the image file. |
XAML Syntax | |
---|---|
For XAML information, see the BitmapSource type. |
XAML Attributes Usage | |
---|---|
<object Source=imageUri/> |
Dependencies Property Information | |
---|---|
Identifier field | |
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.For XAML example, refer to BitmapSourceViewer.
For C#/VB examples, refer to BitmapSourceViewer.
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family