PropertyCondition 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
속성에 지정된 값이 있는 경우 충족되는 조건입니다.
public ref class PropertyCondition sealed : Microsoft::Maui::Controls::Condition
public ref class PropertyCondition sealed : Microsoft::Maui::Controls::Condition, Microsoft::Maui::Controls::Xaml::IValueProvider
public sealed class PropertyCondition : Microsoft.Maui.Controls.Condition
[Microsoft.Maui.Controls.Xaml.AcceptEmptyServiceProvider]
public sealed class PropertyCondition : Microsoft.Maui.Controls.Condition, Microsoft.Maui.Controls.Xaml.IValueProvider
type PropertyCondition = class
inherit Condition
[<Microsoft.Maui.Controls.Xaml.AcceptEmptyServiceProvider>]
type PropertyCondition = class
inherit Condition
interface IValueProvider
Public NotInheritable Class PropertyCondition
Inherits Condition
Public NotInheritable Class PropertyCondition
Inherits Condition
Implements IValueProvider
- 상속
- 특성
- 구현
설명
클래스가 PropertyCondition 포함된 MultiTrigger 컨트롤의 속성 값을 확인하는 데 적합합니다. 개발자는 다른 컨트롤의 값을 확인하기 위해 트리거 목록의 BindingCondition 속성 조건 외에도 클래스를 사용할 수 있습니다.
아래 XML 예제에서는 비밀을 입력할 때 텍스트를 녹색으로 TextCell 바꾸는 주변 MultiTrigger 내의 속성 조건을 만듭니다. 사용자가 비밀을 편집하면 코드가 기본 색으로 돌아갑니다. (일반적으로 둘 MultiTrigger 이상의 조건이 있습니다. 이 예제는 명확성을 위해 간소화됩니다.)
<Entry Placeholder="Type the secret!"
VerticalOptions="Center"
HorizontalOptions="Center">
<Entry.Triggers>
<MultiTrigger TargetType="Entry" >
<MultiTrigger.Conditions>
<PropertyCondition Property="Text"
Value="The text color is green" />
</MultiTrigger.Conditions>
<Setter Property="TextColor"
Value="Color.Green" />
</MultiTrigger>
</Entry.Triggers>
</Entry>
생성자
| Name | Description |
|---|---|
| PropertyCondition() |
PropertyCondition 클래스의 새 인스턴스를 초기화합니다. |
속성
| Name | Description |
|---|---|
| Property |
이 조건에 대해 값이 평가되는 바인딩 가능한 속성을 가져오거나 설정합니다. |
| Value |
속성과 일치할 때 이 조건을 충족하는 값을 가져오거나 설정합니다. |
명시적 인터페이스 구현
| Name | Description |
|---|---|
| IValueProvider.ProvideValue(IServiceProvider) |
속성에 지정된 값이 있는 경우 충족되는 조건입니다. |