Click here to Skip to main content
15,896,118 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a treeview in Homepage. The other part of home page is a frame to
navigate to some URI depending on treeview selection.

The treeview is a usercontrol that fires a selection in its cs file.
What is the best way to find my home page frame and instruct it to do something?

Thanks
Bob
Posted
Comments
Sergey Alexandrovich Kryukov 1-Dec-11 15:59pm    
Find?! Is it lost? :-)
--SA
RaviRanjanKr 1-Dec-11 17:21pm    
Please be more clear while asking question. we need more information about your question.

1 solution

It's not clear what you actually want, so check out the appropriate tip below:

Get Your Silverlight MainPage[^]

Get The URL For the Page Serving Your Silverlight App[^]
 
Share this answer
 
Comments
Rbucha 1-Dec-11 16:16pm    
I am a newby so...I guess the main question is I am on xyz.cs file where the treeview fired a selection event. I need to have the frame that is on same page as treeview that fired event display some other page it its frame. Don't know how to do this/find frame?
Rbucha 1-Dec-11 16:33pm    
John
I input MainPage mainPage = App.Current.RootVisual as MainPage;

Then I tried using intellisense to look at the mainPage but shows nothing. I would of thought where you were going with this is to get to my Home.xaml I would do mainPage.Home.myFrame.Navigate (new uri.....)
Rbucha 1-Dec-11 17:38pm    
John
So I did :
MainPage rootPage = App.Current.RootVisual as MainPage;
string url = HtmlPage.Document.DocumentUri.ToString();
The url is of my Home Page
So on this home page is a frame that I want do following
MyFrame.Navigate (new Uri...)
Rbucha 2-Dec-11 15:52pm    
So John the uri code gets me the Home page that the Treeview and myFrame that I want to navigate to within Home page, but I don't know how to call myframe with that information.Thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900