다음을 통해 공유


ExtendedPropertyValueEditor 클래스

업데이트: 2007년 11월

속성에 대한 모든 확장 편집기 논리의 컨테이너입니다.

네임스페이스:  Microsoft.Windows.Design.PropertyEditing
어셈블리:  Microsoft.Windows.Design(Microsoft.Windows.Design.dll)

구문

Public Class ExtendedPropertyValueEditor _
    Inherits PropertyValueEditor

Dim instance As ExtendedPropertyValueEditor
public class ExtendedPropertyValueEditor : PropertyValueEditor
public ref class ExtendedPropertyValueEditor : public PropertyValueEditor
public class ExtendedPropertyValueEditor extends PropertyValueEditor

설명

ExtendedPropertyValueEditor 클래스는 두 개의 DataTemplate 개체를 포함할 수 있는데 하나는 인라인 편집기를 위한 것이고 다른 하나는 확장 편집기를 위한 것입니다. 인라인 편집기는 속성 창의 경계 내에 나타나는 사용자 지정 인터페이스를 제공하고 확장 편집기는 새 창에 나타나는 인터페이스를 제공합니다.

InlineEditorTemplate 속성은 인라인 편집기의 시각적 인터페이스용 XAML 템플릿을 반환하고 ExtendedEditorTemplate 속성은 확장 편집기용 XAML 템플릿을 반환합니다. 이러한 템플릿은 일반적으로 프로젝트의 ResourceDictionary에서 제공합니다.

사용자 지정 ExtendedPropertyValueEditor를 호출하려면 EditModeSwitchButton을 사용해야 합니다. 예제를 보려면 연습: 색 편집기 구현을 참조하십시오.

예제

다음 코드 예제에서는 ExtendedPropertyValueEditor 클래스를 사용하는 방법을 보여 줍니다. 자세한 내용은 연습: 색 편집기 구현을 참조하십시오.

' Demonstrates creating a class that inherits ExtendedPropertyValueEditor
' and setting the ExtendedEditorTemplate and InlineEditorTemplate properties.
Public Class BrushExtendedEditor
    Inherits ExtendedPropertyValueEditor
    ' The EditorResources class in this example inherits ResourceDirectory and
    ' contains the template for the extended editor and the inline editor. This would be defined in 
    ' an associated XAML file named EditorResources.xaml
    Private res As New EditorResources()
    Public Sub New()
        Me.ExtendedEditorTemplate = CType(res("BrushExtendedEditorTemplate"), DataTemplate)
        Me.InlineEditorTemplate = CType(res("BrushInlineEditorTemplate"), DataTemplate)
    End Sub
End Class
// Demonstrates creating a class that inherits ExtendedPropertyValueEditor
// and setting the ExtendedEditorTemplate and InlineEditorTemplate properties.
public class BrushExtendedEditor : ExtendedPropertyValueEditor
{
    // The EditorResources class in this example inherits ResourceDictionary 
    // class contains template for the inline editor and the extended editor. These would be 
    // defined in an associated XAML file named EditorResources.xaml
    private EditorResources res = new EditorResources();

    public BrushExtendedEditor()
    {
        this.ExtendedEditorTemplate = res["BrushExtendedEditorTemplate"] as DataTemplate;
        this.InlineEditorTemplate = res["BrushInlineEditorTemplate"] as DataTemplate;
    }
}

상속 계층 구조

System.Object
  Microsoft.Windows.Design.PropertyEditing.PropertyValueEditor
    Microsoft.Windows.Design.PropertyEditing.ExtendedPropertyValueEditor

스레드로부터의 안전성

이 형식의 모든 공용 static(Visual Basic의 경우 Shared) 멤버는 스레드로부터 안전합니다. 인터페이스 멤버는 스레드로부터 안전하지 않습니다.

참고 항목

참조

ExtendedPropertyValueEditor 멤버

Microsoft.Windows.Design.PropertyEditing 네임스페이스

기타 리소스

속성 편집 아키텍처

WPF Designer 확장성

메타데이터 저장소