public class RadPageViewNavigationViewElement : RadPageViewStripElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Declaration
public RadPageViewNavigationViewElement()
Declaration
public static RadProperty CollapsedGlyphProperty
Field Value
Declaration
public static RadProperty CollapsedPaneWidthProperty
Field Value
Declaration
public static RadProperty CompactModeThresholdWidthProperty
Field Value
Declaration
public static RadProperty DisplayModeProperty
Field Value
Declaration
public static RadProperty ExpandedGlyphProperty
Field Value
Declaration
public static RadProperty ExpandedModeThresholdWidthProperty
Field Value
Declaration
public static RadProperty ExpandedPaneWidthProperty
Field Value
Declaration
public static RadProperty HierarchyIndentProperty
Field Value
Declaration
public static RadProperty HierarchyPopupExpandModeProperty
Field Value
Declaration
public static RadProperty ItemExpandCollapseModeProperty
Field Value
Gets or sets a value indicating whether animations are enabled for expand and collapse operations.
Declaration
public bool AllowAnimation { get; set; }
Property Value
Gets or sets the total number of animation frames used during expand and collapse operations.
Declaration
public int AnimationFrames { get; set; }
Property Value
Gets or sets the interval between animation frames during expand and collapse operations.
Declaration
public int AnimationInterval { get; set; }
Property Value
Gets or sets the glyph displayed in the expander element when a navigation item is in its collapsed state.
Declaration
public string CollapsedGlyph { get; set; }
Property Value
Gets or sets the width of the navigation pane when the view is in collapsed state.
Declaration
public int CollapsedPaneWidth { get; set; }
Property Value
Gets or sets the width threshold that determines when the navigation view switches between collapsed and compact modes in auto display mode.
Declaration
public int CompactModeThresholdWidth { get; set; }
Property Value
Gets or sets the display mode that determines how the navigation view renders and behaves.
Declaration
public NavigationViewDisplayModes DisplayMode { get; set; }
Property Value
Gets or sets the glyph displayed in the expander element when a navigation item is in its expanded state.
Declaration
public string ExpandedGlyph { get; set; }
Property Value
Gets or sets the width threshold that determines when the navigation view switches between compact and expanded modes in auto display mode.
Declaration
public int ExpandedModeThresholdWidth { get; set; }
Property Value
Gets or sets the width of the navigation pane when the view is in expanded state.
Declaration
public int ExpandedPaneWidth { get; set; }
Property Value
Gets or sets the indentation amount applied to child navigation items in hierarchical structures.
Declaration
public int HierarchyIndent { get; set; }
Property Value
Gets or sets the expand mode for hierarchical popups that determines when child items are displayed in popup menus.
Declaration
public NavigationViewHierarchyPopupExpandMode HierarchyPopupExpandMode { get; set; }
Property Value
Gets a value indicating whether the navigation view is currently in its collapsed state.
Declaration
public bool IsCollapsed { get; }
Property Value
Gets or sets the interaction mode that determines how hierarchical navigation items can be expanded and collapsed.
Declaration
public NavigationViewItemExpandCollapseMode ItemExpandCollapseMode { get; set; }
Property Value
Gets or sets the visibility mode for the new item functionality.
Declaration
public override StripViewNewItemVisibility NewItemVisibility { get; set; }
Property Value
Overrides
This property is not relevant for this class.
Declaration
public override StripViewAlignment StripAlignment { get; set; }
Property Value
Overrides
Handles the addition of a new navigation item to the view, ensuring proper configuration and hierarchy.
Declaration
protected override void AddItemCore(RadPageViewItem item)
Parameters
Overrides
Arranges the navigation items and content areas within the specified rectangle, considering the current display mode.
Declaration
protected override RectangleF ArrangeItems(RectangleF itemsRect)
Parameters
System.Drawing.RectangleF
itemsRect
The rectangle containing the area available for arranging navigation items.
|
Returns
System.Drawing.RectangleF
The rectangle representing the content area after navigation items have been arranged.
|
Overrides
Arranges the navigation view element and its children within the specified size, positioning elements according to the current display mode.
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System.Drawing.SizeF
finalSize
The final area within which the navigation view element should arrange itself and its children.
|
Returns
System.Drawing.SizeF
The actual size used by the navigation view element after arranging its children.
|
Overrides
This method is not relevant for this class.
Declaration
protected override void CloseItem(RadPageViewItem item)
Parameters
Overrides
Collapses the navigation view to its minimal state, hiding navigation items while keeping the hamburger button visible.
Declaration
public virtual void Collapse()
Creates the child elements of the navigation view including the header and hamburger button.
Declaration
protected override void CreateChildElements()
Overrides
Creates a new navigation view item.
Declaration
protected override RadPageViewItem CreateItem()
Returns
Overrides
Creates a new item container for the navigation view.
Declaration
protected override StripViewItemContainer CreateItemContainer()
Returns
Overrides
Ensures that the navigation view's layout and behavior matches the specified display mode.
Declaration
protected virtual void EnsureDisplayMode(NavigationViewDisplayModes mode)
Parameters
Expands the navigation view from its collapsed state, showing navigation items and enabling full interaction.
Declaration
public virtual void Expand()
Determines the effective display mode based on the current configuration and available space.
Declaration
protected virtual NavigationViewDisplayModes GetEffectiveDisplayMode()
Returns
Determines the effective display mode based on the specified width and current configuration.
Declaration
protected virtual NavigationViewDisplayModes GetEffectiveDisplayMode(float width)
Parameters
System.Single
width
The available width for determining the appropriate display mode.
|
Returns
Measures the navigation items within the available space, applying constraints based on pane width settings.
Declaration
protected override SizeF MeasureItems(SizeF availableSize)
Parameters
System.Drawing.SizeF
availableSize
The available size for measuring the navigation items.
|
Returns
System.Drawing.SizeF
The desired size for the navigation items based on their content and layout requirements.
|
Overrides
Measures the navigation view element and its children to determine the desired size based on available space and current display mode.
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.Drawing.SizeF
availableSize
The available size for the navigation view element.
|
Returns
System.Drawing.SizeF
The desired size of the navigation view element based on its content and layout requirements.
|
Overrides
Fires the Collapsed event.
Declaration
protected virtual void OnCollapsed(EventArgs e)
Parameters
System.EventArgs
e
The event arguments.
|
Fires the Collapsing event.
Declaration
protected virtual void OnCollapsing(CancelEventArgs e)
Parameters
System.ComponentModel.CancelEventArgs
e
The event arguments.
|
Handles changes to the enabled state and raises appropriate UI automation events for accessibility support.
Declaration
protected override void OnEnabledChanged(RadPropertyChangedEventArgs e)
Parameters
Overrides
Fires the Expanded event.
Declaration
protected virtual void OnExpanded(EventArgs e)
Parameters
System.EventArgs
e
The event arguments.
|
Fires the Expanding event.
Declaration
protected virtual void OnExpanding(CancelEventArgs e)
Parameters
System.ComponentModel.CancelEventArgs
e
The event arguments.
|
Fires the ItemCollapsed event.
Declaration
protected virtual void OnItemCollapsed(object item, EventArgs e)
Parameters
System.Object
item
The item.
|
System.EventArgs
e
The event arguments.
|
Fires the ItemCollapsing event.
Declaration
protected virtual void OnItemCollapsing(object item, CancelEventArgs e)
Parameters
System.Object
item
The item.
|
System.ComponentModel.CancelEventArgs
e
The event arguments.
|
Fires the ItemExpanded event.
Declaration
protected virtual void OnItemExpanded(object item, EventArgs e)
Parameters
System.Object
item
The item.
|
System.EventArgs
e
The event arguments.
|
Fires the ItemExpanding event.
Declaration
protected virtual void OnItemExpanding(object item, CancelEventArgs e)
Parameters
System.Object
item
The item.
|
System.ComponentModel.CancelEventArgs
e
The event arguments.
|
Called when the element is loaded and ready for interaction, initializing header text and other UI elements.
Declaration
protected override void OnLoaded()
Overrides
Handles property change notifications for the navigation view and updates appropriate visual states and layouts.
Declaration
protected override void OnNotifyPropertyChanged(PropertyChangedEventArgs e)
Parameters
System.ComponentModel.PropertyChangedEventArgs
e
The property change event arguments containing information about the changed property.
|
Overrides
Handles property change notifications and applies appropriate updates to the navigation view's state and appearance.
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
Overrides
Pins a navigation item to a specific position within the navigation view layout.
Declaration
public void PinItem(RadPageViewItem item, NavigationViewItemPinPosition position)
Parameters
Pins a page item to a specific position within the navigation view layout.
Declaration
public void PinPage(RadPageViewPage page, NavigationViewItemPinPosition position)
Parameters
Handles the removal of a navigation item from the view, performing necessary cleanup operations.
Declaration
protected override void RemoveItemCore(RadPageViewItem item)
Parameters
Overrides
Handles navigation between items in the view, supporting hierarchical structures and proper focus management.
Declaration
protected override bool SelectNextItemCore(RadPageViewItem current, bool forward, bool wrap)
Parameters
RadPageViewItem
current
The currently selected navigation item.
|
System.Boolean
forward
True to navigate forward, false to navigate backward.
|
System.Boolean
wrap
True to allow wrapping from the last item to the first or vice versa.
|
Returns
System.Boolean
True if navigation was successful, false otherwise.
|
Overrides
Configures the navigation view for the specified display mode and applies the appropriate layout settings.
Declaration
protected virtual void SetDisplayMode(NavigationViewDisplayModes mode)
Parameters
Sets the specified navigation item as the currently selected item and updates the navigation view accordingly.
Declaration
protected override void SetSelectedItem(RadPageViewItem item)
Parameters
Overrides
Determines whether a specific child element should participate in the arrange phase of layout.
Declaration
protected override bool ShouldArrangeChild(RadElement child)
Parameters
RadElement
child
The child element to evaluate for arrangement participation.
|
Returns
System.Boolean
True if the child should be arranged, false if it should be excluded from arrangement.
|
Overrides
Determines whether a specific child element should participate in the measure phase of layout.
Declaration
protected override bool ShouldMeasureChild(RadElement child)
Parameters
RadElement
child
The child element to evaluate for measurement participation.
|
Returns
System.Boolean
True if the child should be measured, false if it should be excluded from measurement.
|
Overrides
Removes the pinned status from a navigation item, allowing it to return to its normal position.
Declaration
public void UnpinItem(RadPageViewItem item)
Parameters
Removes the pinned status from a page item, allowing it to return to its normal position.
Declaration
public void UnpinPage(RadPageViewPage page)
Parameters
Occurs after the hamburger menu is collapsed.
Declaration
public event EventHandler Collapsed
Event Type
Occurs before the hamburger menu is collapsed.
Declaration
public event CancelEventHandler Collapsing
Event Type
System.ComponentModel.CancelEventHandler
|
Occurs after the hamburger menu is expanded.
Declaration
public event EventHandler Expanded
Event Type
Occurs before the hamburger menu is expanded.
Declaration
public event CancelEventHandler Expanding
Event Type
System.ComponentModel.CancelEventHandler
|
Occurs after a hierarchical navigation item is collapsed.
Declaration
public event EventHandler ItemCollapsed
Event Type
Occurs before a hierarchical navigation item is collapsed.
Declaration
public event CancelEventHandler ItemCollapsing
Event Type
System.ComponentModel.CancelEventHandler
|
Occurs after a hierarchical navigation item is expanded.
Declaration
public event EventHandler ItemExpanded
Event Type
Occurs before a hierarchical navigation item is expanded.
Declaration
public event CancelEventHandler ItemExpanding
Event Type
System.ComponentModel.CancelEventHandler
|