Rediger

Del via


DialogPropertyValueEditor Class

Definition

Container for all dialog-editing logic for PropertyEntry objects.

public ref class DialogPropertyValueEditor : System::Activities::Presentation::PropertyEditing::PropertyValueEditor
public class DialogPropertyValueEditor : System.Activities.Presentation.PropertyEditing.PropertyValueEditor
type DialogPropertyValueEditor = class
    inherit PropertyValueEditor
Public Class DialogPropertyValueEditor
Inherits PropertyValueEditor
Inheritance
DialogPropertyValueEditor

Remarks

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 null 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 null reference (Nothing in Visual Basic), the virtual ShowDialog() method is called and you can override this method to show any dialog box.

Constructors

DialogPropertyValueEditor()

Creates a new instance of the DialogPropertyValueEditor class with no specific templates.

DialogPropertyValueEditor(DataTemplate, DataTemplate)

Creates a new instance of the DialogPropertyValueEditor class with the specified dialog editor and inline editor templates.

Properties

DialogEditorTemplate

Gets or sets the DataTemplate that is hosted by a host-specific dialog and has its DataContext set to a PropertyValue.

InlineEditorTemplate

Gets or sets the InlineEditorTemplate, the DataTemplate that is used for an inline editor.

(Inherited from PropertyValueEditor)

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ShowDialog(PropertyValue, IInputElement)

Called when the DialogEditorTemplate is null and a dialog has been invoked by the user.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to