[]
        
(Showing Draft Content)

C1.WPF.PropertyGrid.AdvancedEditor

AdvancedEditor Class

Advanced editor which contains a button and the capability of hosting other common PropertyGrid editors contained in a child window.

Inheritance
AdvancedEditor
Namespace: C1.WPF.PropertyGrid
Assembly: C1.WPF.PropertyGrid.dll
Syntax
[StyleTypedProperty(Property = "WindowStyle", StyleTargetType = typeof(Window))]
[StyleTypedProperty(Property = "OpenButtonStyle", StyleTargetType = typeof(Button))]
[TemplatePart(Name = "Text", Type = typeof(C1TextBox))]
[TemplatePart(Name = "OpenButton", Type = typeof(Button))]
[TemplateVisualState(Name = "Normal", GroupName = "CommonStates")]
[TemplateVisualState(Name = "MouseOver", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Focused", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Disabled", GroupName = "CommonStates")]
public class AdvancedEditor : C1View

Constructors

Name Description
AdvancedEditor()

Initializes a new instance of the AdvancedEditor class.

Fields

Name Description
EditorProperty

Identifies the Editor dependency property.

FocusBrushProperty

Identifies the FocusBrush dependency property.

IsReadOnlyProperty

Identifies the IsReadOnly dependency property.

LabelProperty

Identifies the Label dependency property.

MouseOverBorderBrushProperty

Identifies the MouseOverBorderBrush dependency property.

MouseOverBrushProperty

Identifies the MouseOverBrush dependency property.

OpenButtonStyleProperty

Identifies the OpenButtonStyle dependency property.

OpenIconStyleProperty

Identifies the OpenIconStyle dependency property.

OpenIconTemplateProperty

Identifies the OpenIconTemplate dependency property.

PlaceholderProperty

Identifies the Placeholder dependency property.

PressedBrushProperty

Identifies the PressedBrush dependency property.

ShowOpenButtonProperty

Identifies the ShowOpenButton dependency property.

TextAlignmentProperty

Identifies the TextAlignment dependency property.

TextProperty

Identifies the Text dependency property.

WindowStyleProperty

Identifies the WindowStyle dependency property.

Properties

Name Description
Editor

Gets the editor used within this advanced editor control.

FocusBrush

Gets or sets the Brush used to highlight the focused control.

IsFocused

Gets whether the control is focused.

IsReadOnly

Gets or sets whether this editor accepts entering text.

Label

Gets the label of the advanced editor control.

MouseOverBorderBrush

Gets or sets the Brush used to highlight the border of the control when it has the mouse over.

MouseOverBrush

Gets or sets the Brush used to highlight the control when it has the mouse over.

OpenButtonStyle

Gets or sets the style applied to the advanced editor's button.

OpenIconStyle

Gets or sets the style of the icon shown in the open button.

OpenIconTemplate

Gets or sets the template of the icon used in the open button.

Placeholder

Gets or sets the placeholder text.

PressedBrush

Gets or sets the Brush used to paint a button when it is pressed.

ShowOpenButton

Gets or sets whether the open button is visible.

Text

Gets or sets the text shown.

TextAlignment

Gets or sets how the text should be aligned in the AdvancedEditor.

WindowStyle

Gets or sets the style applied to the advanced editor's window.

Methods

Name Description
ChangeVisualStateCommon(bool)

Updates the current visual state of the Common visual state group to match the object's properties.

Dispose(bool)
OnApplyTemplate()
OnGotFocus(RoutedEventArgs)
OnKeyDown(KeyEventArgs)
OnOpenButtonClick(object, RoutedEventArgs)

Called when the open window button is clicked.

OnWindowCreated(Window)

Invoked after the Window instance was created.

Events

Name Description
TextChanged

Occurs when the text changes.

WindowClosed

Occurs when child window is opened.

WindowOpened

Occurs when child window is opened.