ClassRadPageView
Represents a container control that displays a collection of pages, showing one page at a time with various view modes. Inherits from RadNCEnabledControl and provides tab-like functionality with multiple display styles.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
[TelerikToolboxCategory("Containers")]
public class RadPageView : RadNCEnabledControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadNonClientUIControlRadNCEnabledControlRadPageView
Derived Classes:
Implements:
Inherited Members
Constructors
RadPageView()
Initializes a new instance of the RadPageView class with default settings.
Declaration
public RadPageView()
Properties
AllowShowFocusCues
Gets or sets a value indicating whether focus cues are displayed based on the control type and current UI state.
Declaration
[Browsable(true)]
public override bool AllowShowFocusCues { get; set; }
Property Value
Overrides
AutoScroll
Declaration
[Browsable(false)]
public override bool AutoScroll { get; set; }
Property Value
Overrides
CanRaiseEvents
Gets a value indicating whether event raising is currently enabled for this control.
Declaration
protected override bool CanRaiseEvents { get; }
Property Value
Overrides
DefaultPage
Gets or sets the default RadPageViewPage that will be loaded after EndInit of the control. If the DefaultPage is null, the currently selected page will be loaded.
Declaration
[Browsable(true)]
public RadPageViewPage DefaultPage { get; set; }
Property Value
DefaultSize
Gets the default size for the control.
Declaration
protected override Size DefaultSize { get; }
Property Value
Overrides
DisplayRectangle
Gets the display rectangle for the control content area.
Declaration
public override Rectangle DisplayRectangle { get; }
Property Value
Overrides
EnableNCModification
Declaration
protected override bool EnableNCModification { get; }
Property Value
Overrides
EnableNCPainting
Declaration
protected override bool EnableNCPainting { get; }
Property Value
Overrides
EnablePeekPopup
Gets or sets a value indicating whether a peek pop-up can be shown when a page item is hovered with the mouse. The content of the peek pop-up needs to be set in the PeekPopupOpening event.
ItemSize
Gets or sets the size of the page view items when ItemSizeMode is set to EqualSize.
Declaration
[Browsable(true)]
public Size ItemSize { get; set; }
Property Value
ItemSizeMode
Gets or sets how page view items will be sized within a RadPageViewElement instance.
Declaration
[Browsable(true)]
public PageViewItemSizeMode ItemSizeMode { get; set; }
Property Value
PageBackColor
Gets or sets the background color that will be applied to all pages in the control.
Pages
Gets the collection of pages contained within this view.
Declaration
public RadPageViewPageCollection Pages { get; }
Property Value
PeekPopup
Gets the peek pop-up control, which is represented by a RadCallout. The content of the peek pop-up needs to be set in the PeekPopupOpening event and EnablePeekPopup must be enabled.
Declaration
[Browsable(false)]
public RadCallout PeekPopup { get; }
Property Value
PeekPopupInterval
Gets or sets the time interval in milliseconds required to show a PeekPopup after a RadPageViewItem is hovered.
SelectedPage
Gets or sets the RadPageViewPage instance that is currently selected within the view.
Declaration
[Browsable(false)]
public RadPageViewPage SelectedPage { get; set; }
Property Value
SelectionWrap
Gets or sets a value indicating whether page selection will wrap around when using arrow keys for navigation. If set to true, pressing the right arrow key when the last page is selected will select the first page.
Declaration
[Browsable(true)]
public bool SelectionWrap { get; set; }
Property Value
UseMnemonic
Gets or sets a value indicating whether the ampersand character (&) will be treated as a mnemonic prefix.
Declaration
[Browsable(true)]
public bool UseMnemonic { get; set; }
Property Value
ViewElement
Gets the current RadPageViewElement instance that represents the UI of the view.
Declaration
public virtual RadPageViewElement ViewElement { get; }
Property Value
ViewMode
Gets or sets the current display mode of the page view control.
Declaration
public virtual PageViewMode ViewMode { get; set; }
Property Value
Methods
CanEditElementAtDesignTime(RadElement)
Determines whether an element may be edited via the EditUIElements dialog at design-time.
Declaration
protected override bool CanEditElementAtDesignTime(RadElement element)
Parameters
element
Returns
Overrides
Construct()
Constructs the internal components of the RadPageView control including the page collection and view mode setup.
Declaration
protected override void Construct()
Overrides
CreateAccessibilityInstance()
Creates an accessibility object for this control.
Declaration
protected override AccessibleObject CreateAccessibilityInstance()
Returns
A new accessibility object for this control.
Overrides
CreateControlsInstance()
Creates and returns a new controls collection for this control.
Declaration
protected override Control.ControlCollection CreateControlsInstance()
Returns
A new RadPageViewControlCollection instance.
Overrides
CreatePagesInstance()
Creates and returns a new pages collection for this control.
Declaration
protected virtual RadPageViewPageCollection CreatePagesInstance()
Returns
A new RadPageViewPageCollection instance.
CreateUI()
Creates the appropriate RadPageViewElement instance based on the current view mode.
Declaration
protected virtual RadPageViewElement CreateUI()
Returns
A new RadPageViewElement instance.
EnsurePageVisible(RadPageViewPage)
Ensures that the specified page is visible within the view.
Declaration
public void EnsurePageVisible(RadPageViewPage page)
Parameters
page
The RadPageViewPage to make visible.
OnGotFocus(EventArgs)
Declaration
protected override void OnGotFocus(EventArgs e)
Parameters
e
Overrides
OnItemListMenuDisplayed(EventArgs)
Raises the ItemListMenuDisplayed event.
OnItemListMenuDisplaying(RadPageViewMenuDisplayingEventArgs)
Raises the ItemListMenuDisplaying event.
Declaration
protected virtual void OnItemListMenuDisplaying(RadPageViewMenuDisplayingEventArgs e)
Parameters
e
RadPageViewMenuDisplayingEventArgs
A RadPageViewMenuDisplayingEventArgs that contains the event data.
OnKeyDown(KeyEventArgs)
Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
e
Overrides
OnLostFocus(EventArgs)
Declaration
protected override void OnLostFocus(EventArgs e)
Parameters
e
Overrides
OnMouseWheel(MouseEventArgs)
Declaration
protected override void OnMouseWheel(MouseEventArgs e)
Parameters
e
Overrides
OnNCPaint(Graphics)
Declaration
protected override void OnNCPaint(Graphics g)
Parameters
g
Overrides
OnNewPageRequested(EventArgs)
Raises the NewPageRequested event.
OnPageAdded(RadPageViewEventArgs)
Raises the PageAdded event.
Declaration
protected virtual void OnPageAdded(RadPageViewEventArgs e)
Parameters
e
A RadPageViewEventArgs that contains the event data.
OnPageAdding(RadPageViewCancelEventArgs)
Raises the PageAdding event.
Declaration
protected virtual void OnPageAdding(RadPageViewCancelEventArgs e)
Parameters
e
A RadPageViewCancelEventArgs that contains the event data.
OnPageCollapsed(RadPageViewEventArgs)
Declaration
protected virtual void OnPageCollapsed(RadPageViewEventArgs e)
Parameters
e
OnPageCollapsing(RadPageViewCancelEventArgs)
Declaration
protected virtual void OnPageCollapsing(RadPageViewCancelEventArgs e)
Parameters
e
OnPageExpanded(RadPageViewEventArgs)
Raises the PageExpanded event.
Declaration
protected virtual void OnPageExpanded(RadPageViewEventArgs e)
Parameters
e
A RadPageViewEventArgs that contains the event data.
OnPageExpanding(RadPageViewCancelEventArgs)
Raises the PageExpanding event.
Declaration
protected virtual void OnPageExpanding(RadPageViewCancelEventArgs e)
Parameters
e
A RadPageViewCancelEventArgs that contains the event data.
OnPageIndexChanged(RadPageViewIndexChangedEventArgs)
Raises the PageIndexChanged event.
Declaration
protected virtual void OnPageIndexChanged(RadPageViewIndexChangedEventArgs e)
Parameters
e
RadPageViewIndexChangedEventArgs
A RadPageViewIndexChangedEventArgs that contains the event data.
OnPageIndexChanging(RadPageViewIndexChangingEventArgs)
Raises the PageIndexChanging event.
Declaration
protected virtual void OnPageIndexChanging(RadPageViewIndexChangingEventArgs e)
Parameters
e
RadPageViewIndexChangingEventArgs
A RadPageViewIndexChangingEventArgs that contains the event data.
OnPageRemoved(RadPageViewEventArgs)
Raises the PageRemoved event.
Declaration
protected virtual void OnPageRemoved(RadPageViewEventArgs e)
Parameters
e
A RadPageViewEventArgs that contains the event data.
OnPageRemoving(RadPageViewCancelEventArgs)
Raises the PageRemoving event.
Declaration
protected virtual void OnPageRemoving(RadPageViewCancelEventArgs e)
Parameters
e
A RadPageViewCancelEventArgs that contains the event data.
OnPagesCleared(EventArgs)
Raises the PagesCleared event.
OnPagesClearing(CancelEventArgs)
Raises the PagesClearing event.
Declaration
protected virtual void OnPagesClearing(CancelEventArgs e)
Parameters
e
A CancelEventArgs that contains the event data.
OnSelectedPageChanged(EventArgs)
Raises the SelectedPageChanged event.
OnSelectedPageChanging(RadPageViewCancelEventArgs)
Raises the SelectedPageChanging event.
Declaration
protected virtual void OnSelectedPageChanging(RadPageViewCancelEventArgs e)
Parameters
e
A RadPageViewCancelEventArgs that contains the event data.
OnViewModeChanged(RadPageViewModeEventArgs)
Raises the ViewModeChanged event.
Declaration
protected virtual void OnViewModeChanged(RadPageViewModeEventArgs e)
Parameters
e
A RadPageViewModeEventArgs that contains the event data.
OnViewModeChanging(RadPageViewModeChangingEventArgs)
Raises the ViewModeChanging event.
Declaration
protected virtual void OnViewModeChanging(RadPageViewModeChangingEventArgs e)
Parameters
e
RadPageViewModeChangingEventArgs
A RadPageViewModeChangingEventArgs that contains the event data.
ProcessCodedUIMessage(ref IPCMessage)
Processes CodedUI messages for automation support.
Declaration
protected override void ProcessCodedUIMessage(ref IPCMessage request)
Parameters
request
IPCMessage
The CodedUI message to process.
Overrides
ResumeEvents()
Resumes event raising that was previously suspended by a SuspendEvents() call.
Declaration
public void ResumeEvents()
ScaleControl(SizeF, BoundsSpecified)
Declaration
protected override void ScaleControl(SizeF factor, BoundsSpecified specified)
Parameters
factor
specified
Overrides
SetSelectedPage(RadPageViewEventArgs)
Sets the selected page of the control.
Declaration
protected virtual void SetSelectedPage(RadPageViewEventArgs e)
Parameters
e
A RadPageViewEventArgs that contains the page to select.
SuspendEvents()
Temporarily suspends event raising for this control.
Declaration
public void SuspendEvents()
UpdateUI()
Updates the user interface based on the current view mode.
Declaration
protected void UpdateUI()
Events
ItemCreating
Occurs when a page item is about to be created, allowing customization of the creation process.
Declaration
public event EventHandler<RadPageViewItemCreatingEventArgs> ItemCreating
Event Value
ItemDropped
Occurs when a page item has been successfully dropped over another item during drag and drop operations.
Declaration
public event EventHandler<RadPageViewItemDroppedEventArgs> ItemDropped
Event Value
ItemDropping
Occurs when a page item is about to be dropped over another item during drag and drop operations.
Declaration
public event EventHandler<RadPageViewItemDroppingEventArgs> ItemDropping
Event Value
ItemListMenuDisplayed
Occurs when the built-in items list menu has been displayed.
Declaration
public event EventHandler ItemListMenuDisplayed
Event Value
ItemListMenuDisplaying
Occurs when the built-in items list menu is about to be displayed, allowing the display to be canceled.
Declaration
public event EventHandler<RadPageViewMenuDisplayingEventArgs> ItemListMenuDisplaying
Event Value
NewPageRequested
Occurs when a request to create a new page has been made, typically through user interaction.
PageAdded
Occurs when a new page has been successfully added to the page collection.
Declaration
public event EventHandler<RadPageViewEventArgs> PageAdded
Event Value
PageAdding
Occurs when a new page is about to be added to the page collection, allowing the addition to be canceled.
Declaration
public event EventHandler<RadPageViewCancelEventArgs> PageAdding
Event Value
PageCollapsed
Occurs when the content of a RadPageViewPage has been collapsed. This event is only applicable when the view mode is set to ExplorerBar.
Declaration
public virtual event EventHandler<RadPageViewEventArgs> PageCollapsed
Event Value
PageCollapsing
Occurs when the content of a RadPageViewPage is about to collapse. This event is only applicable when the view mode is set to ExplorerBar.
Declaration
public virtual event EventHandler<RadPageViewCancelEventArgs> PageCollapsing
Event Value
PageExpanded
Occurs when the content of a RadPageViewPage has been expanded. This event is only applicable when the view mode is set to ExplorerBar.
Declaration
public virtual event EventHandler<RadPageViewEventArgs> PageExpanded
Event Value
PageExpanding
Occurs when the content of a RadPageViewPage is about to expand. This event is only applicable when the view mode is set to ExplorerBar.
Declaration
public virtual event EventHandler<RadPageViewCancelEventArgs> PageExpanding
Event Value
PageIndexChanged
Occurs when a page's index position has been successfully changed.
Declaration
public event EventHandler<RadPageViewIndexChangedEventArgs> PageIndexChanged
Event Value
PageIndexChanging
Occurs when a page is about to change its index position, allowing the change to be canceled.
Declaration
public event EventHandler<RadPageViewIndexChangingEventArgs> PageIndexChanging
Event Value
PageRemoved
Occurs when a page has been successfully removed from the page collection.
Declaration
public event EventHandler<RadPageViewEventArgs> PageRemoved
Event Value
PageRemoving
Occurs when a page is about to be removed from the page collection, allowing the removal to be canceled.
Declaration
public event EventHandler<RadPageViewCancelEventArgs> PageRemoving
Event Value
PagesCleared
Occurs when all pages have been successfully removed from the page collection.
PagesClearing
Occurs when all pages are about to be removed from the page collection, allowing the clearing to be canceled.
Declaration
public event CancelEventHandler PagesClearing
Event Value
PeekPopupClosed
Occurs when the peek pop-up window has been closed.
PeekPopupOpening
Occurs when the peek pop-up window is about to be opened.
Declaration
public event EventHandler<RadPageViewPeekPopupEventArgs> PeekPopupOpening
Event Value
SelectedPageChanged
Occurs when the currently selected page has changed.
Declaration
public event EventHandler SelectedPageChanged
Event Value
SelectedPageChanging
Occurs when the currently selected page is about to change.
Declaration
public event EventHandler<RadPageViewCancelEventArgs> SelectedPageChanging
Event Value
ViewModeChanged
Occurs when the current view mode has been successfully changed.
Declaration
public virtual event EventHandler<RadPageViewModeEventArgs> ViewModeChanged
Event Value
ViewModeChanging
Occurs when the current view mode is about to change, allowing the change to be canceled.
Declaration
public virtual event EventHandler<RadPageViewModeChangingEventArgs> ViewModeChanging
Event Value