UIElement.BitmapEffect Property

Definition

Warning

This API is now obsolete.

Obtiene o establece un efecto de imagen que se aplica directamente al contenido representado de este elemento.Gets or sets a bitmap effect that applies directly to the rendered content for this element. Es una propiedad de dependencia.This is a dependency property.

public:
 property System::Windows::Media::Effects::BitmapEffect ^ BitmapEffect { System::Windows::Media::Effects::BitmapEffect ^ get(); void set(System::Windows::Media::Effects::BitmapEffect ^ value); };
[System.Obsolete("BitmapEffects are deprecated and no longer function.  Consider using Effects where appropriate instead.")]
public System.Windows.Media.Effects.BitmapEffect BitmapEffect { get; set; }
[System.Obsolete("Avoid using BitmapEffects as they have very poor performance characteristics.  They will be deprecated in a future version.  Consider using the UIElement.Effect property and ShaderEffects where appropriate instead.")]
public System.Windows.Media.Effects.BitmapEffect BitmapEffect { get; set; }
member this.BitmapEffect : System.Windows.Media.Effects.BitmapEffect with get, set
Public Property BitmapEffect As BitmapEffect

Property Value

BitmapEffect

Efecto de imagen que se va a aplicar.The bitmap effect to apply.

Attributes

Examples

En el ejemplo siguiente se establece un efecto de imagen mediante BlurBitmapEffect.The following example sets a bitmap effect, using BlurBitmapEffect.

// Get a reference to the Button.
Button myButton = (Button)sender;

// Initialize a new BlurBitmapEffect that will be applied
// to the Button.
BlurBitmapEffect myBlurEffect = new BlurBitmapEffect();

// Set the Radius property of the blur. This determines how 
// blurry the effect will be. The larger the radius, the more
// blurring. 
myBlurEffect.Radius = 10;

// Set the KernelType property of the blur. A KernalType of "Box"
// creates less blur than the Gaussian kernal type.
myBlurEffect.KernelType = KernelType.Box;

// Apply the bitmap effect to the Button.
myButton.BitmapEffect = myBlurEffect;

Remarks

BitmapEffect es un tipo abstracto, por lo tanto, el uso de XAMLXAML requiere una clase derivada implementada de BitmapEffect, como OuterGlowBitmapEffect.BitmapEffect is an abstract type, therefore the XAMLXAML usage requires an implemented derived class of BitmapEffect, such as OuterGlowBitmapEffect. Tenga en cuenta que una clase derivada implementada es un tipo de colección que le permite especificar más de un BitmapEffectsecuencial, mediante una sintaxis de etiqueta anidada.Note that one implemented derived class is a collection type that allows you to specify more than one sequential BitmapEffect, using a nested tag syntax.

Ninguna clase derivada existente de BitmapEffect admite un convertidor de tipos, por lo que la sintaxis de XAMLXAML que se usa para esta propiedad es generalmente la sintaxis de elementos de propiedad.No existing derived class of BitmapEffect supports a type converter, so the XAMLXAML syntax that you use for this property is generally property element syntax.

Información sobre propiedades de dependenciaDependency Property Information

Campo de identificadorIdentifier field BitmapEffectProperty
Propiedades de metadatos establecidas en trueMetadata properties set to true NoneNone

Applies to