How to hide the Silverlight RadMenu

4 posts, 0 answers
  1. satish
    satish avatar
    52 posts
    Member since:
    Apr 2009

    Posted 16 Jul 2009 Link to this post

    Hi,

    I am working on Silverlight Navigation application. I have placed the RadMenu in main page. I want to hide the RadMenu through code. once the user logins succesfully then i want to show him the menu.

    I am setting Visibility="Collapsed" in RadMenu. Eventhough it's not hiding the menu.

    Can any body please help me on this ASAP.


    Regards
    Satish
  2. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 17 Jul 2009 Link to this post

    Hi satish,

    I was not able to reproduce this problem.
    Could you send us simple project demonstrating it so we can further investigate?

    All the best,
    Hristo
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. DevCraft banner
  4. satish
    satish avatar
    52 posts
    Member since:
    Apr 2009

    Posted 23 Jul 2009 Link to this post

    Hi Hristo,

       Thanks for the resposne. Now I am able to hide the RadMenu in MainPage.xaml. 
      
       If user logged in succesfully. Then I am navigating to Home page. There I have to show the RadMenu. I have written like this in Login.xaml.vb page.

    If

     

    e.Result = 1 Then

     

     


     Dim
    Parent As DependencyObject = VisualTreeHelper.GetParent(Me)

     

     

     Dim ParentFrame As Frame = TryCast(Parent, Frame)

     

     


     While
    ParentFrame Is Nothing

     

      Parent = VisualTreeHelper.GetParent(Parent)

      ParentFrame =

    TryCast(Parent, Frame)

     

     

     End While

     

     
     ParentFrame.Navigate(

    New Uri("/Home", UriKind.RelativeOrAbsolute))

     

     


     Dim
    oMainPage As MainPage

     

     oMainPage =

    New MainPage

     

     oMainPage.MainMenu.Visibility = Visibility.Collapsed

     oMainPage.lblWelcome.Visibility = Visibility.Collapsed

     oMainPage.lblDivider.Text =

    "Home"

     

     

    End If


    Eventhough I am not able to view the RadMenu in MainPage

    Please help me on this.

    Regards
    Satish
  5. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 24 Jul 2009 Link to this post

    Hi Satish,

    I can't see a code which shows the RadMenu. Could you share some more information or a project containing the issue, so we will be able to provide more useful explanation.

    Greetings,
    Kaloyan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top