RelativeSource.ShouldSerializeAncestorType 메서드

정의

AncestorType 속성을 유지해야 하는지를 나타냅니다.

public:
 bool ShouldSerializeAncestorType();
public bool ShouldSerializeAncestorType ();
member this.ShouldSerializeAncestorType : unit -> bool
Public Function ShouldSerializeAncestorType () As Boolean

반환

Boolean

속성 값이 기본값에서 변경되었으면 true이고, 그렇지 않으면 false입니다.

설명

ShouldSerialize 때문에 메서드가 제공 됩니다는 AncestorType 속성에는 간단한 기본 값이 없습니다. 이 메서드는 속성이 기본값에서 변경 되었는지 여부를 나타냅니다. 에 대 한 디자이너를 하거나 개발 하는 경우 일반적으로이 메서드를 호출 합니다 RelativeSource 통합 하는 고유한 컨트롤을 개발 하거나는 RelativeSource.

자세한 내용은 ShouldSerialize 및 다시 설정 하는 메서드를 사용 하 여 기본값 정의합니다.

적용 대상