Abdussamed KOCAK

Abdussamed KOCAK

  • NA
  • 46
  • 73.1k

Navigation With Button !!!

Sep 25 2010 4:20 AM

Hi All.
I am trying the open a Window wtih a button.
My codes-->>
private void button1_Click(object sender, RoutedEventArgs e)
{
_myFrame.Navigate(myUri);
}


"And I tried <_myFrame.NavigationService.Navigate(myUri)>  too ."

But both of them catches Error .   Error : " InvalidOperationException  The root element is not valid for navigation."

I wanted to use this.NavigationService but i couldnt find it. when I write this. there is no NavigationService in the menu ..

Thanks..

Answers (1)