Panel Bar Redirect Problem

4 posts, 0 answers
  1. pranav
    pranav avatar
    10 posts
    Member since:
    May 2007

    Posted 17 Feb 2010 Link to this post

    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
  2. Bobi
    Admin
    Bobi avatar
    513 posts

    Posted 17 Feb 2010 Link to this post

    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.
  3. DevCraft banner
  4. pranav
    pranav avatar
    10 posts
    Member since:
    May 2007

    Posted 18 Feb 2010 Link to this post

    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

  5. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 23 Feb 2010 Link to this post

    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.
Back to Top