Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. WPF App - different page than StartupUri getting called...

WPF App - different page than StartupUri getting called...

Scheduled Pinned Locked Moved WPF
wpfcsharpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Phil Boyd
    wrote on last edited by
    #1

    I have a WPF app (that I didn't write - I just have the "pleasure" of fixing). The StartupUri in the app.xaml references mainwindow.xaml. But for some reason, I have a completely different page BasicView.xaml that is getting loaded first, prior to the MainWindow. Any idea what could be causing this? Thanks

    Phil

    P B 2 Replies Last reply
    0
    • P Phil Boyd

      I have a WPF app (that I didn't write - I just have the "pleasure" of fixing). The StartupUri in the app.xaml references mainwindow.xaml. But for some reason, I have a completely different page BasicView.xaml that is getting loaded first, prior to the MainWindow. Any idea what could be causing this? Thanks

      Phil

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      Check what's in your code behind App.xaml.cs.

      "WPF has many lovers. It's a veritable porn star!" - Josh Smith

      As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

      My blog | My articles | MoXAML PowerToys | Onyx

      1 Reply Last reply
      0
      • P Phil Boyd

        I have a WPF app (that I didn't write - I just have the "pleasure" of fixing). The StartupUri in the app.xaml references mainwindow.xaml. But for some reason, I have a completely different page BasicView.xaml that is getting loaded first, prior to the MainWindow. Any idea what could be causing this? Thanks

        Phil

        B Offline
        B Offline
        BechBej
        wrote on last edited by
        #3

        Check the code behind at the two levels at the app.cs and at the Mainwindow.cs then tell me whether is there a code there

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups