BindingCondition 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
바인딩이 지정된 값으로 계산될 때 충족되는 조건입니다.
public ref class BindingCondition sealed : Microsoft::Maui::Controls::Condition
public ref class BindingCondition sealed : Microsoft::Maui::Controls::Condition, Microsoft::Maui::Controls::Xaml::IValueProvider
public sealed class BindingCondition : Microsoft.Maui.Controls.Condition
[Microsoft.Maui.Controls.Xaml.AcceptEmptyServiceProvider]
public sealed class BindingCondition : Microsoft.Maui.Controls.Condition, Microsoft.Maui.Controls.Xaml.IValueProvider
type BindingCondition = class
inherit Condition
[<Microsoft.Maui.Controls.Xaml.AcceptEmptyServiceProvider>]
type BindingCondition = class
inherit Condition
interface IValueProvider
Public NotInheritable Class BindingCondition
Inherits Condition
Public NotInheritable Class BindingCondition
Inherits Condition
Implements IValueProvider
- 상속
- 특성
- 구현
설명
클래스는 BindingCondition 현재 범위 내의 모든 클래스에 대한 바인딩 값을 비교할 수 있습니다. 주변 MultiTrigger 조건을 포함하는 컨트롤의 바인딩된 속성 값과 비교하려는 개발자는 트리거 목록의 바인딩 조건 외에 이 값을 사용할 PropertyCondition 수 있습니다.
아래 XML 예제에서는 참조된 Text.Lengthname 속성 길이가 같은 0경우 성공하는 주변 MultiTrigger (생략) 내에 바인딩 조건을 만듭니다. (name속성이 있는 요소(예: TextCellTextLength 속성)를 참조해야 합니다.)
<BindingCondition Binding="{Binding Source={x:Reference name},
Path=Text.Length}"
Value="0" />
생성자
| Name | Description |
|---|---|
| BindingCondition() |
BindingCondition 클래스의 새 인스턴스를 초기화합니다. |
속성
| Name | Description |
|---|---|
| Binding |
이 조건에 대해 값이 평가되는 바인딩을 가져오거나 설정합니다. |
| Value |
바인딩과 일치할 때 이 조건을 충족하는 값을 가져오거나 설정합니다. |
명시적 인터페이스 구현
| Name | Description |
|---|---|
| IValueProvider.ProvideValue(IServiceProvider) |
바인딩이 지정된 값으로 계산될 때 충족되는 조건입니다. |