Class RadHostItem
Represents an item that contains external control. There is no limitation for the control type - could be any descendant of the class Control.
Inheritance
Inherited Members
Namespace: Telerik.WinControls
Assembly: Telerik.WinControls.dll
Syntax
public class RadHostItem : RadItem, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode
Constructors
RadHostItem(Control)
Declaration
public RadHostItem(Control c)
Parameters
System.Windows.Forms.Control
c
|
Fields
RadHostItemLastStateKey
This constant is used internally.
Declaration
protected const long RadHostItemLastStateKey = 8796093022208L
Field Value
System.Int64
|
Properties
CausesValidation
Gets or sets the CausesValidation property of the hosted control.
Declaration
public bool CausesValidation { get; set; }
Property Value
System.Boolean
|
Remarks
Using this property is equivalent to using HostedControl.CausesValidation
ClipControl
Gets or sets a value that determines whether the control should be clipped when it requires more space than available.
Declaration
public virtual bool ClipControl { get; set; }
Property Value
System.Boolean
|
Enabled
Declaration
public override bool Enabled { get; set; }
Property Value
System.Boolean
|
Overrides
HostedControl
Gets the instance of the hosted control.
Declaration
public Control HostedControl { get; }
Property Value
System.Windows.Forms.Control
|
RouteMessages
Gets or sets whether the mouse and keyboard messages from the hosted control can be routed to the owner control.
Declaration
public bool RouteMessages { get; set; }
Property Value
System.Boolean
|
Remarks
You can use Control to get the owner control.
To get the hosted control use HostedControl property.
Methods
ArrangeCore(RectangleF)
Declaration
protected override void ArrangeCore(RectangleF finalRect)
Parameters
System.Drawing.RectangleF
finalRect
|
Overrides
DisposeManagedResources()
Declaration
protected override void DisposeManagedResources()
Overrides
DpiScaleChanged(SizeF)
Declaration
public override void DpiScaleChanged(SizeF scaleFactor)
Parameters
System.Drawing.SizeF
scaleFactor
|
Overrides
EnsureHostedControl()
Declaration
protected void EnsureHostedControl()
Focus()
InitializeFields()
MeasureOverride(SizeF)
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.Drawing.SizeF
availableSize
|
Returns
System.Drawing.SizeF
|
Overrides
OnElementTreeChanged(ComponentThemableElementTree)
Declaration
protected override void OnElementTreeChanged(ComponentThemableElementTree previousTree)
Parameters
ComponentThemableElementTree
previousTree
|
Overrides
OnGotFocus(EventArgs)
Declaration
protected virtual void OnGotFocus(EventArgs e)
Parameters
System.EventArgs
e
|
OnLoaded()
OnLostFocus(EventArgs)
Declaration
protected virtual void OnLostFocus(EventArgs e)
Parameters
System.EventArgs
e
|
OnPropertyChanged(RadPropertyChangedEventArgs)
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
RadPropertyChangedEventArgs
e
|
Overrides
OnTransformationInvalidated()
Declaration
protected override void OnTransformationInvalidated()
Overrides
OnTunnelEvent(RadElement, RoutedEventArgs)
Declaration
protected override void OnTunnelEvent(RadElement sender, RoutedEventArgs args)
Parameters
RadElement
sender
|
RoutedEventArgs
args
|
Overrides
OnValidated(EventArgs)
Declaration
protected virtual void OnValidated(EventArgs e)
Parameters
System.EventArgs
e
|
OnValidating(CancelEventArgs)
Declaration
protected virtual void OnValidating(CancelEventArgs e)
Parameters
System.ComponentModel.CancelEventArgs
e
|
SyncBoundsWithHostedControl()
Declaration
protected virtual void SyncBoundsWithHostedControl()
SyncFont(Font)
Declaration
protected virtual void SyncFont(Font font)
Parameters
System.Drawing.Font
font
|
UpdateControlVisibility()
Updates the visibility, which is bound to the item's current IsVisible state, of the hosted control.
Declaration
public void UpdateControlVisibility()
Events
GotFocus
Occurs when the element recieves focus.
Declaration
public event EventHandler GotFocus
Event Type
System.EventHandler
|
LostFocus
Occurs when the element loses focus.
Declaration
public event EventHandler LostFocus
Event Type
System.EventHandler
|
Validated
Corresponds to the hosted control's Validated event
Declaration
public event EventHandler Validated
Event Type
System.EventHandler
|
Validating
Corresponds to the hosted control's Validating event
Declaration
public event CancelEventHandler Validating
Event Type
System.ComponentModel.CancelEventHandler
|