다음을 통해 공유


PropertyValueEditor 클래스

업데이트: 2007년 11월

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

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

구문

Public Class PropertyValueEditor

Dim instance As PropertyValueEditor
public class PropertyValueEditor
public ref class PropertyValueEditor
public class PropertyValueEditor

설명

이 클래스는 인라인 편집기에 대한 하나의 DataTemplate을 포함할 수 있습니다. 이 클래스는 일반적으로 속성 창의 속성에 대해 다른 편집기나 사용자 지정 편집기를 제공하려는 경우에 사용합니다. 인라인 편집기는 속성 창 내에 나타납니다. 화면 영역이 더 크고 항상 표시되지 않는 사용자 지정 편집기를 제공하려면 ExtendedPropertyValueEditor를 참조하십시오.

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

예제

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

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

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

상속 계층 구조

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

스레드로부터의 안전성

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

참고 항목

참조

PropertyValueEditor 멤버

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

기타 리소스

속성 편집 아키텍처

WPF Designer 확장성

메타데이터 저장소