L
L
libera2015-11-17 20:04:43
C++ / C#
libera, 2015-11-17 20:04:43

Opening page in frame C#?

I created a frame form, in it a button in which the page that I created for frame should open.
Navigation is simple.

private void MainWindow_OnLoaded(object sender, RoutedEventArgs e)
{
if (Page1 == null)
Page1 = new Page1();
this.Frame.Navigate(Page1);
}

I placed a frame on the form, and when certain buttons are pressed, it should open my pages in the frame, but I can’t understand what I’m doing wrong.
There are no examples on the internet.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MonkAlex, 2015-11-17
@libera

What is the problem?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question