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

Panel Bar Redirect Problem

3 Answers 64 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
pranav
Top achievements
Rank 1
pranav asked on 17 Feb 2010, 11:48 AM
i am using silverlight panel bar,
on click on item i need to redirect it to some page.
how should i do that?

thnx
pranav

3 Answers, 1 is accepted

Sort by
0
Bobi
Telerik team
answered on 17 Feb 2010, 02:49 PM
Hello pranav,

It is not clear enough what did you mean by "redirect to a page". If you mean using Silverlight Navigation framework then please take a look at the following:
http://silverlight.net/learn/videos/silverlight-videos/navigation-framework/
http://www.silverlightshow.net/items/The-Silverlight-3-Navigation-Framework.aspx
As to the PanelBar you can use Selected event.
Each time when you change the selected panelbaritem you can have something like:

this.MainContent.Navigate( new Uri( "/Views/Home.xaml", UriKind.Relative ) );

I hope that this will help you.

Greetings,
Bobi
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
pranav
Top achievements
Rank 1
answered on 18 Feb 2010, 06:24 AM
hi,
i am using silver light  -

<

telerikNavigation:RadPanelBar x:Name="pb">

 

private

void OnPanelBarEvent(object sender, RadRoutedEventArgs e)

 

{

 

RadPanelBarItem panelBarItem = e.Source as RadPanelBarItem;

 

 

TextBlock header = panelBarItem.Header as TextBlock;

 

 

if (header != null)

 

{

 

//this.Log(e.RoutedEvent.Name, header.Text);

 

 

 

 

//MessageBox.Show(header.Text);

 

 

 

 

}

 

else

 

 

 

{

 

//this.Log(e.RoutedEvent.Name, panelBarItem.ToString());

 

 

 

 

MessageBox.Show(panelBarItem.ToString());

 

}

}
i have created this method on .axml.cs page, so from here i need to redirect to new page..
how that should be done?

thnx
pranav

0
Tina Stancheva
Telerik team
answered on 23 Feb 2010, 11:08 AM
Hi Pranav,

Since you didn't mention whether you want to navigate to internal Silverlight pages or to URLs external to your Silverlight application, I implemented a sample that demonstrates both cases.

Please take a look at the example and let me know if it helps.

All the best,
Tina Stancheva
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
PanelBar
Asked by
pranav
Top achievements
Rank 1
Answers by
Bobi
Telerik team
pranav
Top achievements
Rank 1
Tina Stancheva
Telerik team
Share this question
or