UIElement.BitmapEffect Egenskap

Definition

Varning

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.

Varning

BitmapEffects are deprecated and no longer function. Consider using Effects where appropriate instead.

Hämtar eller anger en bitmappseffekt som gäller direkt för det renderade innehållet för det här elementet. Det här är en beroendeegenskap.

public:
 property System::Windows::Media::Effects::BitmapEffect ^ BitmapEffect { System::Windows::Media::Effects::BitmapEffect ^ get(); void set(System::Windows::Media::Effects::BitmapEffect ^ value); };
[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; }
[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.")>]
member this.BitmapEffect : System.Windows.Media.Effects.BitmapEffect with get, set
[<System.Obsolete("BitmapEffects are deprecated and no longer function.  Consider using Effects where appropriate instead.")>]
member this.BitmapEffect : System.Windows.Media.Effects.BitmapEffect with get, set
Public Property BitmapEffect As BitmapEffect

Egenskapsvärde

Bitmappseffekten som ska tillämpas.

Attribut

Kommentarer

BitmapEffect är en abstrakt typ, därför kräver XAML-användningen en implementerad härledd klass av BitmapEffect, till exempel OuterGlowBitmapEffect. Observera att en implementerad härledd klass är en samlingstyp som gör att du kan ange mer än en sekventiell BitmapEffect, med hjälp av en kapslad taggsyntax.

Ingen befintlig härledd klass av BitmapEffect stöder en typkonverterare, så XAML-syntaxen som du använder för den här egenskapen är vanligtvis egenskapselementsyntax.

Information om beroendeegenskap

Objekt Value
Identifierarfält BitmapEffectProperty
Metadataegenskaper inställda på true Ingen

Gäller för