2 Replies - 21683 Views - Last Post: 05 May 2010 - 05:05 AM

#1 sam.adams61  Icon User is offline

  • D.I.C Regular

Reputation: 12
  • View blog
  • Posts: 283
  • Joined: 14-July 08

Button click event to open a new page in silverlight app

Posted 04 May 2010 - 09:43 PM

I've created a silverlight application in Expression Blend3, added a new silverlight page via visual studio, and I would like to navigate to that page from MainPage.XAML. I've noticed there are no link buttons and such in Blend3, so I've used an ordinary button control. But how do I navigate to the new page from the button's click event? It's not the same as in a C# desktop application. Could someone please explain this to me. In anticipation of your much valued help, many, many thanks! And 'may yer giv'n hawn never fawl aff'.

Is This A Good Question/Topic? 0
  • +

Replies To: Button click event to open a new page in silverlight app

#2 Skaggles  Icon User is offline

  • THE PEN IS MIGHTIER
  • member icon





Reputation: 251
  • View blog
  • Posts: 640
  • Joined: 01-March 09

Re: Button click event to open a new page in silverlight app

Posted 04 May 2010 - 10:09 PM

WPF pages are like a navigation system. You need to have a window set as a NavigationWindow and use it's Navigate() method, passing it the Page you want to display. I did a little searching and found that this might help a little bit in understanding the process: Create Navigation Based Application in WPF
Was This Post Helpful? 1
  • +
  • -

#3 eclipsed4utoo  Icon User is offline

  • Not Your Ordinary Programmer
  • member icon

Reputation: 1524
  • View blog
  • Posts: 5,960
  • Joined: 21-March 08

Re: Button click event to open a new page in silverlight app

Posted 05 May 2010 - 05:05 AM

Here is a video tutorial of the Navigation Framework in Silverlight by Tim Heuer

http://www.silverlig...tion-framework/

This post has been edited by eclipsed4utoo: 05 May 2010 - 05:06 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1