Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
145
how to set xamwebmenu subitem always visible.
posted

Hi Can any one tell me how to set the subitem always visible if i click on that item. presently i removed the property of xamwebmenu ( expand on hover ) set to false but. if i click on sub item its holding but if i click any other button or anything on the page its dis appering. i want to see that should be visile always

Parents
  • 7922
    Verified Answer
    posted

    Hi Ragshyd

    If I understand you correct, you want the submenu to be visible always, regardless where you click on the page. If so, you have to handle SubmenuClosed and SubmenuOpened events. Below is the code snippet I prepare for you.
    private XamWebMenuItem previousItem = null;
    private void XamWebMenuItem_SubmenuClosed(object sender, EventArgs e)
    {
        previousItem.IsSubmenuOpen =
    true;
    } 

    private void XamWebMenuItem_SubmenuOpened(object sender, EventArgs e)
    {
        previousItem = sender
    as XamWebMenuItem;
    }

    <igMenu:XamWebMenuItem SubmenuOpened="XamWebMenuItem_SubmenuOpened" SubmenuClosed="XamWebMenuItem_SubmenuClosed">

    Also I've attached the whole sample with described funtionality.

    Hope this help.

    Todor

     

    sample.rar
Reply Children
No Data