Class RadTitleBarElement
Represents a title bar element. The RadTitleBar class is a simple wrapper for the RadTitleBarElement class. The former acts to transfer events to and from its corresponding RadTitleBarElement instance. All logic and UI functionality is implemented in the RadTitleBarElement class.
You can use RadTitleBarElement events to substitute the title bar in a borderless application.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
[ComVisible(false)]
public class RadTitleBarElement : RadItem, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode
Constructors
RadTitleBarElement()
Declaration
public RadTitleBarElement()
Fields
layout
titleBarIcon
Properties
AllowResize
Determines whether the parent form can be resized by dragging the title bar's edges.
Declaration
public bool AllowResize { get; set; }
Property Value
System.Boolean
|
BorderPrimitive
CanManageOwnerForm
Determines whether the parent form can be moved by dragging the title bar.
Declaration
public bool CanManageOwnerForm { get; set; }
Property Value
System.Boolean
|
CaptionElement
CloseButton
FillPrimitive
HelpButton
IconPrimitive
ImageIcon
An Icon that represents the icon for the form.
Declaration
public Icon ImageIcon { get; set; }
Property Value
System.Drawing.Icon
|
LeftImage
Declaration
public virtual Image LeftImage { get; set; }
Property Value
System.Drawing.Image
|
MaximizeButton
MiddleImage
Declaration
public virtual Image MiddleImage { get; set; }
Property Value
System.Drawing.Image
|
MinimizeButton
RightImage
Declaration
public virtual Image RightImage { get; set; }
Property Value
System.Drawing.Image
|
SystemButtons
TitleBarFill
TitlePrimitive
Methods
CreateChildElements()
Declaration
protected override void CreateChildElements()
Overrides
HandleDoubleClickClick()
Declaration
public virtual void HandleDoubleClickClick()
HandleMouseDown(MouseEventArgs)
Declaration
public virtual void HandleMouseDown(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs
e
|
HandleMouseMove(MouseEventArgs, Form)
Declaration
public virtual void HandleMouseMove(MouseEventArgs e, Form form)
Parameters
System.Windows.Forms.MouseEventArgs
e
|
System.Windows.Forms.Form
form
|
HandleMouseUp()
Declaration
public virtual void HandleMouseUp()
OnClose(Object, EventArgs)
Declaration
protected void OnClose(object sender, EventArgs args)
Parameters
System.Object
sender
|
System.EventArgs
args
|
OnDoubleClick(EventArgs)
Declaration
protected override void OnDoubleClick(EventArgs e)
Parameters
System.EventArgs
e
|
Overrides
OnHelpButtonClick(Object, EventArgs)
Declaration
protected void OnHelpButtonClick(object sender, EventArgs args)
Parameters
System.Object
sender
|
System.EventArgs
args
|
OnMaximizeRestore(Object, EventArgs)
Declaration
protected void OnMaximizeRestore(object sender, EventArgs args)
Parameters
System.Object
sender
|
System.EventArgs
args
|
OnMinimize(Object, EventArgs)
Declaration
protected void OnMinimize(object sender, EventArgs args)
Parameters
System.Object
sender
|
System.EventArgs
args
|
OnMouseDown(MouseEventArgs)
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs
e
|
Overrides
OnMouseMove(MouseEventArgs)
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs
e
|
Overrides
OnMouseUp(MouseEventArgs)
Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs
e
|
Overrides
OnNotifyPropertyChanged(PropertyChangedEventArgs)
Declaration
protected override void OnNotifyPropertyChanged(PropertyChangedEventArgs e)
Parameters
System.ComponentModel.PropertyChangedEventArgs
e
|
Overrides
OnNotifyPropertyChanged(String)
Raises the PropertyChanged event
Declaration
protected override void OnNotifyPropertyChanged(string propertyName)
Parameters
System.String
propertyName
The name of the property |
Overrides
OnPropertyChanged(RadPropertyChangedEventArgs)
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
RadPropertyChangedEventArgs
e
|
Overrides
PaintOverride(IGraphics, Rectangle, Single, SizeF, Boolean)
Declaration
protected override void PaintOverride(IGraphics screenRadGraphics, Rectangle clipRectangle, float angle, SizeF scale, bool useRelativeTransformation)
Parameters
IGraphics
screenRadGraphics
|
System.Drawing.Rectangle
clipRectangle
|
System.Single
angle
|
System.Drawing.SizeF
scale
|
System.Boolean
useRelativeTransformation
|
Overrides
Events
Close
Fires when a close action is performed by the user (the close button is pressed or the system menu is pressed twice). The system menu is not visible by default. Use the Visual Style Builder to set which elements are visible and to change their appearance.
Declaration
public event TitleBarSystemEventHandler Close
Event Type
TitleBarSystemEventHandler
|
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
Declaration
public event TitleBarSystemEventHandler Minimize
Event Type
TitleBarSystemEventHandler
|