Visual Basic (Declaration) | |
---|---|
Public Property BitmapEffectBehavior As BitmapEffectBehavior |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public BitmapEffectBehavior BitmapEffectBehavior {get; set;} |
Managed Extensions for C++ | |
---|---|
public: __property BitmapEffectBehavior get_BitmapEffectBehavior(); public: __property void set_BitmapEffectBehavior( BitmapEffectBehavior value ); |
C++/CLI | |
---|---|
public: property BitmapEffectBehavior BitmapEffectBehavior { BitmapEffectBehavior get(); void set (BitmapEffectBehavior value); } |
XAML Attributes Usage | |
---|---|
<object BitmapEffectBehavior=BitmapEffectBehavior .../> |
Dependency Property Information | |
---|---|
Identifier field | |
Metadata properties set to true | None |
Return Value
A BitmapEffectBehavior enumeration value that determines how to apply a BitmapEffect on the BitmapSourceViewer control. Default value is BitmapEffectBehavior.All.This example shows a method to change the BitmapEffectBehavior
Visual Basic | Copy Code |
---|---|
Public Sub BitmapSourceViewer_BitmapEffectBehavior(ByVal viewer As BitmapSourceViewer) |
C# | Copy Code |
---|---|
public void BitmapSourceViewer_BitmapEffectBehavior(BitmapSourceViewer viewer) |
XAML | Copy Code |
---|---|
<Window x:Class="WPFSamples.BitmapSourceViewer" Height="600" Width="800" Title="BitmapEffectBehavior Sample" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:Leadtools_Windows_Controls="clr-namespace:Leadtools.Windows.Controls;assembly=Leadtools.Windows.Controls"> |
If the value for BitmapEffectBehavior is BitmapEffectBehavior.ImageOnly, then the bitmap effect will be applied to the image only. Also, if the image contains
a geometry, the bitmap effect will be applied to this geometry only.
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family