Class RadTitleBar
Represents a title bar. This control helps in creation of borderless forms by substituting the system title bar. Subscribe for radTitleBar events to implement the actual action for the the corresponding event. For example, on Close event close the form of your application.
Use the Visual Style Builder to change the default appearance and the visible elements. For example the system menu is not visible by default.
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RadTitleBar : RadControl, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IPCHost, IAnalyticsProvider
Constructors
RadTitleBar()
Initializes a new instance of the RadTitleBar class.
Declaration
public RadTitleBar()
Properties
AllowResize
Allow form's resize
Declaration
public bool AllowResize { get; set; }
Property Value
System.Boolean
|
CanManageOwnerForm
Gets or sets a boolean value that determines whether the title bar can manage the owner form.
Declaration
public bool CanManageOwnerForm { get; set; }
Property Value
System.Boolean
|
DefaultSize
Declaration
protected override Size DefaultSize { get; }
Property Value
System.Drawing.Size
|
ImageIcon
An Icon that represents the icon for the form.
Declaration
public Icon ImageIcon { get; set; }
Property Value
System.Drawing.Icon
|
LeftImage
Declaration
public Image LeftImage { get; set; }
Property Value
System.Drawing.Image
|
RightImage
Declaration
public Image RightImage { get; set; }
Property Value
System.Drawing.Image
|
Text
Gets or sets the text associated with this item.
Declaration
public override string Text { get; set; }
Property Value
System.String
|
Overrides
TitleBarElement
Gets the instance of RadTitleBarElement wrapped by this control. RadTitleBarElement is the main element in the hierarchy tree and encapsulates the actual functionality of RadTitleBar.
Declaration
public RadTitleBarElement TitleBarElement { get; }
Property Value
RadTitleBarElement
|
Methods
CreateAccessibilityInstance()
Declaration
protected override AccessibleObject CreateAccessibilityInstance()
Returns
System.Windows.Forms.AccessibleObject
|
CreateChildItems(RadElement)
Declaration
protected override void CreateChildItems(RadElement parent)
Parameters
RadElement
parent
|
Overrides
CreateTitleBarElement()
OnBackgroundImageChanged(EventArgs)
Declaration
protected override void OnBackgroundImageChanged(EventArgs e)
Parameters
System.EventArgs
e
|
OnClose(Object, EventArgs)
Declaration
protected virtual void OnClose(object sender, EventArgs args)
Parameters
System.Object
sender
|
System.EventArgs
args
|
OnHelpButtonClicked(Object, EventArgs)
Declaration
protected virtual void OnHelpButtonClicked(object sender, EventArgs args)
Parameters
System.Object
sender
|
System.EventArgs
args
|
OnMaximizeRestore(Object, EventArgs)
Declaration
protected virtual void OnMaximizeRestore(object sender, EventArgs args)
Parameters
System.Object
sender
|
System.EventArgs
args
|
OnMinimize(Object, EventArgs)
Declaration
protected virtual void OnMinimize(object sender, EventArgs args)
Parameters
System.Object
sender
|
System.EventArgs
args
|
OnMinimizeInTheTray(Object, EventArgs)
Declaration
protected virtual void OnMinimizeInTheTray(object sender, EventArgs args)
Parameters
System.Object
sender
|
System.EventArgs
args
|
OnMove(Object, EventArgs)
Declaration
protected virtual void OnMove(object sender, EventArgs e)
Parameters
System.Object
sender
|
System.EventArgs
e
|
OnParentChanged(EventArgs)
Declaration
protected override void OnParentChanged(EventArgs e)
Parameters
System.EventArgs
e
|
Overrides
OnSize(Object, EventArgs)
Declaration
protected virtual void OnSize(object sender, EventArgs e)
Parameters
System.Object
sender
|
System.EventArgs
e
|
OnTextChanged(EventArgs)
Declaration
protected override void OnTextChanged(EventArgs e)
Parameters
System.EventArgs
e
|
ResetBackColorThemeOverrides()
Declaration
protected override void ResetBackColorThemeOverrides()
Overrides
ResetForeColorThemeOverrides()
Declaration
protected override void ResetForeColorThemeOverrides()
Overrides
SetBackColorThemeOverrides()
Declaration
protected override void SetBackColorThemeOverrides()
Overrides
SetForeColorThemeOverrides()
Declaration
protected override void SetForeColorThemeOverrides()
Overrides
WndProc(ref Message)
Declaration
protected override void WndProc(ref Message m)
Parameters
System.Windows.Forms.Message
m
|
Overrides
Events
Close
MaximizeRestore
Fires when a maximize/restore action is performed by the user (maximizes button is pressed or the title bar is double clicked).
Declaration
public event TitleBarSystemEventHandler MaximizeRestore
Event Type
TitleBarSystemEventHandler
|
Minimize
Fires when a minimize action is performed by the user (the minimize button is pressed).
Declaration
public event TitleBarSystemEventHandler Minimize
Event Type
TitleBarSystemEventHandler
|
MinimizeInTheTray
Fires when the minimize in the tray button is pressed. It is hidden by default. Use the Visual Style Builder to set which elements are visible and design their visual appearance.
Declaration
public event TitleBarSystemEventHandler MinimizeInTheTray
Event Type
TitleBarSystemEventHandler
|