void OnLoad(object sender, RoutedEventArgs e) { this.Content = orderPage; printer.LoadPrinter(); //Comment this out to make things work }