This documentation is archived and is not being maintained.

DialogPropertyValueEditor Class

Container for all dialog-editing logic for PropertyEntry() objects.

System::Object
  System.Activities.Presentation.PropertyEditing::PropertyValueEditor
    System.Activities.Presentation.PropertyEditing::DialogPropertyValueEditor

Namespace:  System.Activities.Presentation.PropertyEditing
Assembly:  System.Activities.Presentation (in System.Activities.Presentation.dll)

public ref class DialogPropertyValueEditor : public PropertyValueEditor

The DialogPropertyValueEditor type exposes the following members.

  NameDescription
Public methodDialogPropertyValueEditor()Creates a new instance of the DialogPropertyValueEditor class with no specific templates.
Public methodDialogPropertyValueEditor(DataTemplate, DataTemplate)Creates a new instance of the DialogPropertyValueEditor class with the specified dialog editor and inline editor templates.
Top

  NameDescription
Public propertyDialogEditorTemplateGets or sets the DataTemplate that is hosted by a host-specific dialog and has its DataContext set to a PropertyValue.
Public propertyInlineEditorTemplateGets or sets the InlineEditorTemplate, the DataTemplate that is used for an inline editor. (Inherited from PropertyValueEditor.)
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodShowDialogCalled when the DialogEditorTemplate is null and a dialog has been invoked by the user.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

Use the DialogPropertyValueEditor class to show an inline editor that can have an associated dialog box editor.

The DialogPropertyValueEditor class can hold either a DataTemplate for a dialog box editor or custom logic that is called when the dialog box is invoked.

Use the EditModeSwitchButton in your DataTemplate to invoke your custom DialogPropertyValueEditor class.

You can provide a DataTemplate which is shown in a host dialog box, or you can override the ShowDialog method, which enables the reuse of existing or system dialog boxes.

The following list shows the rules for determining whether the DataTemplate or ShowDialog method is used.

If the DialogEditorTemplate property is not a reference (Nothing in Visual Basic), that DataTemplate is hosted in a host-specific dialog box, which provides host styling. The ShowDialog is not called.

If the DialogEditorTemplate property is a reference (Nothing in Visual Basic), the virtual ShowDialog method is called and you can override this method to show any dialog box.

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: