FrameworkElement
Base diagram element that supplies size, alignment, transform, styling, and drawing behavior.
Definition
Namespace:Telerik.WinControls.UI.Diagrams
Assembly:Telerik.WinControls.RadDiagram.dll
Syntax:
public class FrameworkElement : UIElement, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, ISupportDrop
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementUIElementFrameworkElement...
Derived Classes:
Implements:
Inherited Members
Constructors
Creates a framework element with painting enabled.
public FrameworkElement()
Fields
Identifies the cursor property, whose registered default is Default.
public static readonly RadProperty CursorProperty
Identifies the foreground-color property, whose registered default is ControlText.
public static readonly RadProperty ForegroundProperty
Identifies the height property, whose registered default is zero.
public static readonly RadProperty HeightProperty
Identifies the registered render-transform-origin property.
public static readonly RadProperty RenderTransformOriginProperty
Identifies the registered render-transform property.
public static readonly RadProperty RenderTransformProperty
Gets or sets the delegate invoked when the element's bounds change.
public SizeChangedEventHandler SizeChanged
Identifies the width property, whose registered default is zero.
public static readonly RadProperty WidthProperty
Properties
Gets the height of the element's control bounding rectangle.
public double ActualHeight { get; }
Gets the width of the element's control bounding rectangle.
public double ActualWidth { get; }
Gets or sets whether this element is marked as a drop target.
public bool AllowDrop { get; set; }
Implements:
The drop callbacks in this base implementation do not process dropped content.
Gets or sets the cursor associated with this element. A changed value raises a property-change notification.
public Cursor Cursor { get; set; }
Gets the flow direction implied by the element's RightToLeft setting; this property has no setter.
public virtual FlowDirection FlowDirection { get; }
Gets the element height or sets it after rounding to an integer pixel size. A non-NaN assignment disables automatic sizing.
public virtual double Height { get; set; }
Gets or sets a stored hover-border thickness value. The base element's painting code uses BorderThickness instead.
public Thickness MouseOverBorderThickness { get; set; }
Gets or sets the normalized point within the element used as the origin for transform-related layout calculations.
[Browsable(false)]
public Point RenderTransformOrigin { get; set; }
Methods
Handles a completed drop. This base implementation does not process the drop.
public void DragDrop(Point dropLocation, ISupportDrag dragObject)
The drop location.
dragObjectISupportDragThe object being dragged.
Implements:
Handles a drag entering this element. This base implementation does nothing.
public void DragEnter(Point currentMouseLocation, ISupportDrag dragObject)
The current mouse location.
dragObjectISupportDragThe object being dragged.
Implements:
Handles a drag leaving the element. This base implementation does nothing.
public void DragLeave(Point oldMouseLocation, ISupportDrag dragObject)
The mouse location before the drag left the element.
dragObjectISupportDragThe object being dragged.
Implements:
Determines whether the current drag operation is accepted. This base implementation always rejects it.
public bool DragOver(Point currentMouseLocation, ISupportDrag dragObject)
The current mouse location.
dragObjectISupportDragThe object being dragged.
Returns:Implements:
Returns the client rectangle inset by border thickness when a border brush is set, with negative dimensions clamped to zero.
protected override RectangleF GetClientRectangle(SizeF finalSize)
The final element size.
Returns:The adjusted client rectangle.
Overrides:
Sets a transparent background and enables centered angle transforms during element initialization.
protected override void InitializeFields()
Overrides:
Marks the element's template as applied; the base implementation does not create template parts.
public virtual void OnApplyTemplate()
Raises SizeChanged after the base bounds-change handling completes.
protected override void OnBoundsChanged(RadPropertyChangedEventArgs e)
The property change containing the old and new bounds.
Overrides:
Paints the background on the underlay and then draws the element through a GDI painting context.
Paints the border after child elements when a border brush is set.
protected override void PostPaintChildren(IGraphics graphics, Rectangle clipRectange, float angle, SizeF scale)
The graphics wrapper used by the element tree.
clipRectangeRectangleThe clip rectangle supplied by the painting pipeline.
anglefloatThe element angle supplied by the painting pipeline.
scaleSizeFThe scale supplied by the painting pipeline.
Overrides: