Base visual element for a property-grid row, with shared selection, expansion, focus, and item-notification behavior.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class PropertyGridItemElementBase : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider, IVirtualizedElement<PropertyGridItemBase>
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementPropertyGridItemElementBase...
Derived Classes:
Implements:
Inherited Members
Constructors
public PropertyGridItemElementBase()
Fields
Identifies the inherited inactive state used by property-grid row themes.
public static RadProperty IsControlInactiveProperty
Identifies the inherited state that marks a property-grid row as expanded.
public static RadProperty IsExpandedProperty
Identifies the inherited state that marks a property-grid row as selected.
public static RadProperty IsSelectedProperty
Properties
Gets the logical item attached to this visual element.
public virtual PropertyGridItemBase Data { get; }
The base implementation must be overridden by a concrete item element.
Implements:
Gets a value indicating whether the control contains the focus.
public virtual bool IsControlFocused { get; set; }
Gets a value indicating whether the item is expanded.
public virtual bool IsExpanded { get; set; }
Gets a value indicating whether the item is selected.
public virtual bool IsSelected { get; set; }
Gets the PropertyGridTableElement that is parent to this item.
public PropertyGridTableElement PropertyTableElement { get; }
Methods
Attaches a logical item and context to this visual element.
public virtual void Attach(PropertyGridItemBase data, object context)
The item to attach.
contextobjectAdditional context supplied by the element provider.
Exceptions: NotImplementedExceptionThe base implementation must be overridden by a concrete item element.
Implements:
Detaches the currently attached logical item from this visual element.
public virtual void Detach()
The base implementation must be overridden by a concrete item element.
Implements:
Determines whether the concrete visual element can represent the specified item and context.
public virtual bool IsCompatible(PropertyGridItemBase data, object context)
The item to test.
contextobjectThe context supplied by the element provider.
Returns:A compatibility result supplied by a concrete item element.
Exceptions: NotImplementedExceptionThe base implementation must be overridden by a concrete item element.
Implements:
Handles changes from the attached item after confirming that this visual element is valid.
protected virtual void item_PropertyChanged(object sender, PropertyChangedEventArgs e)
The item that raised the notification.
ePropertyChangedEventArgsThe item property that changed.
Notifies the owning table that the attached item was clicked.
Notifies the owning table that the attached item was double-clicked.
protected override void OnDoubleClick(EventArgs e)
The event data.
Overrides:
Raises the owning table's item-formatting notification for this visual element.
protected virtual void OnFormatting()
Maps selected, expanded, and control-focus notifications from the data item to visual state.
protected virtual void OnItemPropertyChanged(PropertyChangedEventArgs e)
The property-change data from the attached item.
Forwards the mouse-down event and its attached item to the owning property-grid table.
protected override void OnMouseDown(MouseEventArgs e)
The mouse event data.
Overrides:
Forwards the mouse-move event and its attached item to the owning property-grid table.
protected override void OnMouseMove(MouseEventArgs e)
The mouse event data.
Overrides:
Resynchronizes the visual item when its pointer-over state changes while it is valid.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
The property-change data.
Overrides:
Raises the owning table's item-formatting notification for this element.
public virtual void Synchronize()
Implements: