ClassFrameworkElement
Definition
Namespace:Telerik.WinControls.RichTextEditor.UI
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class FrameworkElement : UIElement, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, ISupportDrop
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementUIElementFrameworkElement
Derived Classes:
Implements:
Inherited Members
Constructors
FrameworkElement()
Declaration
public FrameworkElement()
Fields
CursorProperty
Declaration
public static readonly RadProperty CursorProperty
Field Value
ForegroundProperty
Declaration
public static readonly RadProperty ForegroundProperty
Field Value
HeightProperty
Declaration
public static readonly RadProperty HeightProperty
Field Value
RenderTransformOriginProperty
Declaration
public static readonly RadProperty RenderTransformOriginProperty
Field Value
RenderTransformProperty
Declaration
public static readonly RadProperty RenderTransformProperty
Field Value
WidthProperty
Declaration
public static readonly RadProperty WidthProperty
Field Value
Properties
AllowDrop
Determines whether the instance allows for drop operations.
FlowDirection
Gets or sets the direction of flow of the elements.
Declaration
public virtual FlowDirection FlowDirection { get; }
Property Value
HorizontalAlignment
Declaration
public HorizontalAlignment HorizontalAlignment { get; set; }
Property Value
HorizontalContentAlignment
Declaration
public HorizontalAlignment HorizontalContentAlignment { get; set; }
Property Value
MouseOverBorderThickness
Declaration
public Thickness MouseOverBorderThickness { get; set; }
Property Value
VerticalAlignment
Declaration
public VerticalAlignment VerticalAlignment { get; set; }
Property Value
VerticalContentAlignment
Declaration
public VerticalAlignment VerticalContentAlignment { get; set; }
Property Value
Methods
DragDrop(Point, ISupportDrag)
Completes drag-drop operation of instance of the IDraggable over the specified target.
Declaration
public void DragDrop(Point dropLocation, ISupportDrag dragObject)
Parameters
dropLocation
An instance of Point which represents a drop location.
dragObject
An instance of the IDraggable which is dragged over the target.
Implements
DragEnter(Point, ISupportDrag)
Drop operations to occur in the drop target. Called when the cursor first enters the specified target.
Declaration
public void DragEnter(Point currentMouseLocation, ISupportDrag dragObject)
Parameters
currentMouseLocation
The current position of the mouse cursor
dragObject
An instance of the IDraggable which is dragged over the target.
Implements
DragLeave(Point, ISupportDrag)
Special behavior when the drag operation leaves the specified target.
Declaration
public void DragLeave(Point oldMouseLocation, ISupportDrag dragObject)
Parameters
oldMouseLocation
The old position of the mouse cursor
dragObject
An instance of the IDraggable which is dragged over the target.
Implements
DragOver(Point, ISupportDrag)
Handles drag over operation when the cursor is moving over the drop target.
Declaration
public bool DragOver(Point currentMouseLocation, ISupportDrag dragObject)
Parameters
currentMouseLocation
The current position of the mouse cursor
dragObject
An instance of the IDraggable which is dragged over the specified target.
Returns
True if the operation finished successfully, otherwise false.
Implements
GetClientRectangle(SizeF)
Declaration
protected override RectangleF GetClientRectangle(SizeF finalSize)
Parameters
finalSize
Returns
Overrides
InitializeFields()
Initializes member fields to their default values. This method is called prior the CreateChildItems one and allows for initialization of members on which child elements depend.
Declaration
protected override void InitializeFields()
Overrides
MeasureOverride(SizeF)
Measures the space required by the RadElement
Used by the layout system.
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
availableSize
The size that is available to the RadElement. The available size can be infinity (to take the full size of the element)
Returns
The minimum size required by the element to be completely visible. Cannot be infinity.
Overrides
Remarks
In this method call to the Measure method of each child must be made.
OnApplyTemplate()
Declaration
public virtual void OnApplyTemplate()
PaintElement(IGraphics, float, SizeF)
Paints the element's background and calls the base implementation to paint child elements.
Declaration
protected override void PaintElement(IGraphics graphics, float angle, SizeF scale)
Parameters
graphics
The graphics object used for painting.
angle
The rotation angle to apply during painting.
scale
The scale factor to apply during painting.
Overrides