UIElement.Effect 속성

정의

UIElement에 적용할 비트맵 효과를 가져오거나 설정합니다. 이 속성은 종속성 속성입니다.

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

속성 값

Effect

비트맵 효과를 나타내는 Effect입니다.

예제

다음 XAML은 속성에 사용자 지정 ShaderEffect 을 할당하는 Effect 방법을 보여줍니다.

<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>

설명

속성을 Effect 사용하여 비트맵 효과를 적용합니다 UIElement.

종속성 속성 정보

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

적용 대상

추가 정보