Skip to main content

Microsoft Silverlight

Answered Question Web-pageRSS Feed

(0)

Ladyzay
Ladyzay

Member

Member

1 points

9 Posts

Web-page

hello

I have just created a set of buttons in expression blend 2, and also created a couple of pages in Visual studio 2005.

I was to link each button to each page created in vsual studio 2005.

how do I go about about adding events to the buttons to display the pages when a user clicks on the buttons.

 

Thanks

Have a nice day

chiyau
chiyau

Member

Member

152 points

16 Posts

Answered Question

Re: Web-page

 Hi Ladyzay

You can try to do that, on the Click Event on that Button that you created on Expression Blend,

 

 private void btn_GoToURL_Click(object sender, RoutedEventArgs e)
        {

HtmlPage.Window.Navigate(new Uri("http://silverlight.net"));

}

Hope this can help.


pardeepkaushik8
pardeepk...

Member

Member

20 points

15 Posts

Re: Web-page

 hello i think you  can dirctly

 add click_button event handller in Xaml  and on right click on that  navigate   to code file 

   and write code related to vt you want 

 

pardeep kaushik

roudihamzeh
roudihamzeh

Member

Member

2 points

2 Posts

Re: Web-page

Ladyzay..

are your pages .xaml or .html..?

 

pardeepkaushik8
pardeepk...

Member

Member

20 points

15 Posts

Re: Web-page

 sorry i did'nt understood your question

        here is your   answer i can help you out 

HtmlPage.Window.Navigate(new Uri("http://silverlight.net/forums/AddPost.aspx?ReplyToPostID=168705&Quote=False"));

pardeep kaushik
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities