WinUI | ComponentOne
C1.WinUI.Menu Assembly / C1.WinUI.Menu Namespace / C1MenuItem Class / InitializeItem Method
The C1HierarchicalPresenter whose this item belongs to.
In This Topic
    InitializeItem Method (C1MenuItem)
    In This Topic
    Initializes a C1HierarchicalPresenter by setting its parent and root elements in the hierarchy.
    Syntax
    public void InitializeItem( 
       C1HierarchicalPresenter rootPresenter
    )

    Parameters

    rootPresenter
    The C1HierarchicalPresenter whose this item belongs to.
    Remarks
    This method should be invoked only when we want to force the initialization of an item before it gets visible. Otherwise the item will be initialized automatically before becoming visible.
    See Also