assign a xaml file in a frame source dynamically
I have this code in a xaml file now in a event handler code i want to assign a xaml file in a frame source dynamically
the code in xaml file is ..
<navigation:Frame Name="ProjectTab" Grid.Column="1" Grid.Row="2" Source="/ProjectTab.xaml"/>
here this assi开发者_JAVA百科gnment of source is working but how to do that in a .cs file.
ProjectTab.Sourse=???
You can assign the source is code using:-
ProjectTab.Source = new Uri("/ProjectTab.xml", UriKind.Relative);
精彩评论