UIElement.BitmapEffect 속성

정의

주의

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.

주의

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

이 요소의 렌더링된 콘텐츠에 직접 적용되는 비트맵 효과를 가져오거나 설정합니다. 이 속성은 종속성 속성입니다.

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

속성 값

BitmapEffect

적용할 비트맵 효과입니다.

특성

예제

다음 예제에서는 .를 사용하여 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;

설명

BitmapEffect 는 추상 형식이므로 XAML 사용 시 구현된 파생 클래스 BitmapEffect(예: OuterGlowBitmapEffect.)가 필요합니다. 구현된 파생 클래스는 중첩된 태그 구문을 사용하여 둘 이상의 순차적으로 BitmapEffect지정할 수 있는 컬렉션 형식입니다.

형식 변환기를 지원하는 기존 파생 클래스 BitmapEffect 가 없으므로 이 속성에 사용하는 XAML 구문은 일반적으로 속성 요소 구문입니다.

종속성 속성 정보

식별자 필드 BitmapEffectProperty
메타 데이터 속성 설정 true 없음

적용 대상