This is a migrated thread and some comments may be shown as answers.

How to hide the Silverlight RadMenu

3 Answers 77 Views
Menu
This is a migrated thread and some comments may be shown as answers.
satish
Top achievements
Rank 1
satish asked on 16 Jul 2009, 11:28 AM
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

3 Answers, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 17 Jul 2009, 06:33 AM
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.
0
satish
Top achievements
Rank 1
answered on 24 Jul 2009, 04:28 AM
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
0
Kaloyan
Telerik team
answered on 24 Jul 2009, 01:00 PM
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.
Tags
Menu
Asked by
satish
Top achievements
Rank 1
Answers by
Hristo
Telerik team
satish
Top achievements
Rank 1
Kaloyan
Telerik team
Share this question
or