WPF loading page into frame but missing button?
Waller, Reece (Student)
1
Reputation point
Hi everyone,
I'm creating a very basic application that lets you flick between pages using buttons. It starts off by loading each page onto a frame, however it only seems to be loading the image and not the buttons?
Here is my MainWindow.xaml.cs that controls the frame:
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
Loaded += MyWindow_Loaded;
}
public void MyWindow_Loaded(object sender, RoutedEventArgs e)
{
FrameElement.NavigationService.Navigate(new Home());
}
}
After that, it navigates you to a page called "Home" and displays two buttons. The buttons appear in the preview for the page but not when I click Run. Any advice?
Sign in to answer