UIElement.Effect Property

Definition

UIElement에 적용할 비트맵 효과를 가져오거나 설정합니다.Gets or sets the bitmap effect to apply to the UIElement. 이 속성은 종속성 속성입니다.This is a dependency property.

public:
 property System::Windows::Media::Effects::Effect ^ Effect { System::Windows::Media::Effects::Effect ^ get(); void set(System::Windows::Media::Effects::Effect ^ value); };
public System.Windows.Media.Effects.Effect Effect { get; set; }
member this.Effect : System.Windows.Media.Effects.Effect with get, set
Public Property Effect As Effect

Property Value

Effect

비트맵 효과를 나타내는 Effect입니다.An Effect that represents the bitmap effect.

Examples

다음 XAML에서는 사용자 지정 ShaderEffect Effect 속성에 할당 하는 방법을 보여 줍니다.The following XAML shows how to assign a custom ShaderEffect to the Effect property.

<Window x:Class="ShaderEffectDemo.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:ShaderEffectDemo"
    Title="Window1" Height="300" Width="300">
    <Window.Resources>
        <local:ThresholdEffect x:Key="thresholdEffect" Threshold="0.25" BlankColor="Orange" />
    </Window.Resources>
    
    <Grid Effect="{StaticResource thresholdEffect}">

    </Grid>
</Window>

Remarks

Effect 속성을 사용 하 여 UIElement에 비트맵 효과를 적용 합니다.Use the Effect property to apply a bitmap effect to a UIElement.

종속성 속성 정보Dependency Property Information

식별자 필드Identifier field EffectProperty
메타 데이터 속성 설정 trueMetadata properties set to true 없음None

Applies to

See also