RadNCEnabledControl
This class represents a RadControl that allows for non-client area modification and paiting.
Definition
Namespace:Telerik.WinControls
Assembly:Telerik.WinControls.dll
Syntax:
public class RadNCEnabledControl : RadNonClientUIControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadNonClientUIControlRadNCEnabledControl...
Derived Classes:
Implements:
Inherited Members
Constructors
public RadNCEnabledControl()
Properties
Gets whether this control adjusts the client area during WM_NCCALCSIZE using GetNCMetrics(); the default is false.
protected virtual bool EnableNCModification { get; }
This base control does not provide a help button and returns null.
public override RadItem HelpButtonElement { get; }
Overrides:
This base control does not provide an icon element and returns null.
public override ImagePrimitive IconCaptionElement { get; }
Overrides:
This base control does not provide a maximize button and returns null.
public override RadItem MaximizeButtonElement { get; }
Overrides:
This base control does not provide a minimize button and returns null.
public override RadItem MinimizeButtonElement { get; }
Overrides:
This base control does not provide a system-button group and returns null.
public override RadItem SystemButtonsElement { get; }
Overrides:
This base control does not provide a caption text element and returns null.
public override RadElement TextCaptionElement { get; }
Overrides:
Methods
Gets the insets used to adjust the client area when EnableNCModification is enabled.
protected virtual Padding GetNCMetrics()
The non-client insets to apply to the client rectangle.
Paints the custom non-client area when EnableNCPainting is enabled.
protected virtual void OnNCPaint(Graphics g)
A graphics context for the window's non-client area.
Declines to handle non-client hit testing so RadNonClientUIControl can check its help-button target before delegating.
protected override bool WmNCHitTest(ref Message msg)
The hit-test message.
Returns:false to continue RadNonClientUIControl hit-test processing.
Overrides:
Handles non-client painting and client-area calculation when enabled by the corresponding override properties.
protected override void WndProc(ref Message m)
The window message to process.
Overrides: