PlatformBehavior<TView> 클래스

정의

플랫폼 보기 계층 구조에 연결할 때 임의의 조건 및 이벤트에 응답할 수 있는 일반화된 사용자 정의 동작에 대한 기본 클래스입니다.

generic <typename TView>
 where TView : VisualElementpublic ref class PlatformBehavior abstract : Microsoft::Maui::Controls::PlatformBehavior<TView, System::Object ^>
public abstract class PlatformBehavior<TView> : Microsoft.Maui.Controls.PlatformBehavior<TView,object> where TView : VisualElement
type PlatformBehavior<'View (requires 'View :> VisualElement)> = class
    inherit PlatformBehavior<'View, obj (requires 'View :> VisualElement)>
Public MustInherit Class PlatformBehavior(Of TView)
Inherits PlatformBehavior(Of TView, Object)

형식 매개 변수

TView

가상 보기

상속
Behavior<TView>
PlatformBehavior<TView>

생성자

PlatformBehavior<TView>()

플랫폼 보기 계층 구조에 연결할 때 임의의 조건 및 이벤트에 응답할 수 있는 일반화된 사용자 정의 동작에 대한 기본 클래스입니다.

속성

AssociatedType

Behavior를 연결할 수 있는 개체의 형식을 가져옵니다.

(다음에서 상속됨 Behavior)
BindingContext

BindableObject에 속하는 바인딩된 속성의 대상이 되는 속성을 포함하는 개체를 가져오거나 설정합니다. 이는 바인딩 가능 속성입니다.

(다음에서 상속됨 BindableObject)
Dispatcher

이 바인딩 가능한 개체를 만들 때 사용할 수 있었던 디스패처를 가져오고, 그렇지 않으면 사용 가능한 가장 가까운 디스패처(아마도 창/앱)를 찾으려고 시도합니다.

(다음에서 상속됨 BindableObject)

메서드

ApplyBindings()

모든 현재 바인딩을 에 BindingContext적용합니다.

(다음에서 상속됨 BindableObject)
ClearValue(BindableProperty)

이전에 바인딩 가능한 속성에 대해 설정된 값을 지웁니다.

(다음에서 상속됨 BindableObject)
ClearValue(BindablePropertyKey)

키로 식별된 바인딩 가능한 속성에 대해 이전에 설정된 값을 지웁니다.

(다음에서 상속됨 BindableObject)
CoerceValue(BindableProperty)

지정된 바인딩 가능한 속성의 값을 강제 변환합니다. 이 작업은 지정된 바인딩 가능한 속성을 호출하여 BindableProperty.CoerceValueDelegate 수행됩니다.

(다음에서 상속됨 BindableObject)
CoerceValue(BindablePropertyKey)

지정된 바인딩 가능한 속성의 값을 강제 변환합니다. 이 작업은 지정된 바인딩 가능한 속성을 호출하여 BindableProperty.CoerceValueDelegate 수행됩니다.

(다음에서 상속됨 BindableObject)
GetValue(BindableProperty)

지정된 바인딩 가능한 속성에 포함된 값을 반환합니다.

(다음에서 상속됨 BindableObject)
IsSet(BindableProperty)

바인딩 가능한 속성이 있고 값 집합이 있는지 여부를 결정합니다.

(다음에서 상속됨 BindableObject)
OnAttachedTo(BindableObject)

애플리케이션 개발자는 bindable과 연결되는 동작을 구현하도록 이 메서드를 재정의합니다.

(다음에서 상속됨 PlatformBehavior<TView,TPlatformView>)
OnAttachedTo(TView)

애플리케이션 개발자는 bindable과 연결되는 동작을 구현하도록 이 메서드를 재정의합니다.

(다음에서 상속됨 PlatformBehavior<TView,TPlatformView>)
OnAttachedTo(TView, TPlatformView)

이 메서드는 바인딩 가능한 플랫폼 뷰 계층 구조에 연결 될 때 호출 됩니다.

(다음에서 상속됨 PlatformBehavior<TView,TPlatformView>)
OnBindingContextChanged()

BindingContextChanged 이벤트를 발생시킵니다.

(다음에서 상속됨 BindableObject)
OnDetachedFrom(TView, TPlatformView)

이 메서드는 바인딩 가능한 플랫폼 뷰 계층 구조에서 분리 될 때 호출 됩니다.

(다음에서 상속됨 PlatformBehavior<TView,TPlatformView>)
OnDetachingFrom(BindableObject)

애플리케이션 개발자는 OnAttachedTo(BindableObject) 메서드에 대한 이전 호출에서 구현된 bindable의 동작을 제거하도록 이 메서드를 재정의합니다.

(다음에서 상속됨 PlatformBehavior<TView,TPlatformView>)
OnDetachingFrom(TView)

애플리케이션 개발자는 OnAttachedTo(T) 메서드에 대한 이전 호출에서 구현된 bindable의 동작을 제거하도록 이 메서드를 재정의합니다.

(다음에서 상속됨 PlatformBehavior<TView,TPlatformView>)
OnPropertyChanged(String)

PropertyChanged 이벤트를 발생시킵니다.

(다음에서 상속됨 BindableObject)
OnPropertyChanging(String)

PropertyChanging 이벤트를 발생시킵니다.

(다음에서 상속됨 BindableObject)
RemoveBinding(BindableProperty)

바인딩 가능한 속성에서 이전에 설정된 바인딩을 제거합니다.

(다음에서 상속됨 BindableObject)
SetBinding(BindableProperty, BindingBase)

바인딩 가능한 속성에 바인딩을 할당합니다.

(다음에서 상속됨 BindableObject)
SetValue(BindableProperty, Object)

지정된 바인딩 가능한 속성의 값을 설정합니다.

(다음에서 상속됨 BindableObject)
SetValue(BindablePropertyKey, Object)

지정된 바인딩 가능한 속성의 값을 설정합니다.

(다음에서 상속됨 BindableObject)
SetValueCore(BindableProperty, Object, SetValueFlags)

Microsoft.Maui.Controls 플랫폼의 내부 사용.

(다음에서 상속됨 BindableObject)
UnapplyBindings()

현재 컨텍스트에서 모든 현재 바인딩을 제거합니다.

(다음에서 상속됨 BindableObject)

이벤트

BindingContextChanged

BindingContext 속성 값이 변경되면 발생합니다.

(다음에서 상속됨 BindableObject)
PropertyChanged

속성 값이 변경될 때 발생합니다.

(다음에서 상속됨 BindableObject)
PropertyChanging

속성 값이 변경될 때 발생합니다.

(다음에서 상속됨 BindableObject)

명시적 인터페이스 구현

IDynamicResourceHandler.SetDynamicResource(BindableProperty, String)

플랫폼 보기 계층 구조에 연결할 때 임의의 조건 및 이벤트에 응답할 수 있는 일반화된 사용자 정의 동작에 대한 기본 클래스입니다.

(다음에서 상속됨 BindableObject)

확장 메서드

GetPropertyIfSet<T>(BindableObject, BindableProperty, T)

플랫폼 보기 계층 구조에 연결할 때 임의의 조건 및 이벤트에 응답할 수 있는 일반화된 사용자 정의 동작에 대한 기본 클래스입니다.

SetAppTheme<T>(BindableObject, BindableProperty, T, T)

플랫폼 보기 계층 구조에 연결할 때 임의의 조건 및 이벤트에 응답할 수 있는 일반화된 사용자 정의 동작에 대한 기본 클래스입니다.

SetAppThemeColor(BindableObject, BindableProperty, Color, Color)

플랫폼 보기 계층 구조에 연결할 때 임의의 조건 및 이벤트에 응답할 수 있는 일반화된 사용자 정의 동작에 대한 기본 클래스입니다.

SetBinding(BindableObject, BindableProperty, String, BindingMode, IValueConverter, String)

속성에 바인딩을 만들고 적용합니다.

적용 대상