tags:

views:

180

answers:

1

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 assignment of source is working but how to do that in a .cs file.

ProjectTab.Sourse=???

A: 

You can assign the source is code using:-

ProjectTab.Source = new Uri("/ProjectTab.xml", UriKind.Relative);
AnthonyWJones
Thanks a tonIts Working