开发者

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);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜