FrameworkElement
Definition
Namespace:Telerik.WinControls.Spreadsheet.UI
Assembly:Telerik.WinControls.RadSpreadsheet.dll
Syntax:
public class FrameworkElement : UIElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, IShortcutProvider, IStylableElement, IStylableNode, ISupportDrop
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIElementFrameworkElement...
Derived Classes:
Implements:
Inherited Members
Constructors
public FrameworkElement()
Fields
public static readonly RadProperty CursorProperty
public static readonly RadProperty ForegroundProperty
public static readonly RadProperty HeightProperty
public static readonly RadProperty RenderTransformOriginProperty
public static readonly RadProperty RenderTransformProperty
public static readonly RadProperty WidthProperty
Properties
public double ActualHeight { get; }
public double ActualWidth { get; }
Determines whether the instance allows for drop operations.
public bool AllowDrop { get; set; }
Implements:
public Brush Background { get; set; }
public Brush BorderBrush { get; set; }
Gets or sets the direction of flow of the elements.
public virtual FlowDirection FlowDirection { get; }
public HorizontalAlignment HorizontalAlignment { get; set; }
public HorizontalAlignment HorizontalContentAlignment { get; set; }
public Thickness MouseOverBorderThickness { get; set; }
public Point RenderTransformOrigin { get; set; }
public VerticalAlignment VerticalAlignment { get; set; }
public VerticalAlignment VerticalContentAlignment { get; set; }
Methods
Completes drag-drop operation of instance of the IDraggable over the specified target.
public void DragDrop(Point dropLocation, ISupportDrag dragObject)
An instance of Point which represents a drop location.
dragObjectISupportDragAn instance of the IDraggable which is dragged over the target.
Implements:
Drop operations to occur in the drop target. Called when the cursor first enters the specified target.
public void DragEnter(Point currentMouseLocation, ISupportDrag dragObject)
The current position of the mouse cursor
dragObjectISupportDragAn instance of the IDraggable which is dragged over the target.
Implements:
Special behavior when the drag operation leaves the specified target.
public void DragLeave(Point oldMouseLocation, ISupportDrag dragObject)
The old position of the mouse cursor
dragObjectISupportDragAn instance of the IDraggable which is dragged over the target.
Implements:
Handles drag over operation when the cursor is moving over the drop target.
public bool DragOver(Point currentMouseLocation, ISupportDrag dragObject)
The current position of the mouse cursor
dragObjectISupportDragAn instance of the IDraggable which is dragged over the specified target.
Returns:True if the operation finished successfully, otherwise false.
Implements:
protected override RectangleF GetClientRectangle(SizeF finalSize)
Overrides:
Initializes the fields of this instance with their default values.
protected override void InitializeFields()
Overrides:
Measures the space required by the RadElement
Used by the layout system.
protected override SizeF MeasureOverride(SizeF 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:
In this method call to the Measure method of each child must be made.
public virtual void OnApplyTemplate()
Paints the element's background and calls the base implementation to paint child elements.