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 startup time

WPF startup time

Scheduled Pinned Locked Moved WPF
csharpwpf
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.
  • K Offline
    K Offline
    krishnan s
    wrote on last edited by
    #1

    Hi, I have developed 2 windows in WPF . In Window1 Window_Loaded i have created the window2 like this so that the window2 controls will be intialized during startup itself private void Window_Loaded(object sender, RoutedEventArgs e) { Window Window2 = new Window(); } And iam only showing the window2 on the button click from window1, but the window2 display takes about 4 to 5 secs. Is there any thing do be taken care which iam missing. Thanks

    realJSOPR C 2 Replies Last reply
    0
    • K krishnan s

      Hi, I have developed 2 windows in WPF . In Window1 Window_Loaded i have created the window2 like this so that the window2 controls will be intialized during startup itself private void Window_Loaded(object sender, RoutedEventArgs e) { Window Window2 = new Window(); } And iam only showing the window2 on the button click from window1, but the window2 display takes about 4 to 5 secs. Is there any thing do be taken care which iam missing. Thanks

      realJSOPR Online
      realJSOPR Online
      realJSOP
      wrote on last edited by
      #2

      Without knowing what is done inside Window2 before it's allowed to be displayed, we can't help you.

      "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
      -----
      "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

      1 Reply Last reply
      0
      • K krishnan s

        Hi, I have developed 2 windows in WPF . In Window1 Window_Loaded i have created the window2 like this so that the window2 controls will be intialized during startup itself private void Window_Loaded(object sender, RoutedEventArgs e) { Window Window2 = new Window(); } And iam only showing the window2 on the button click from window1, but the window2 display takes about 4 to 5 secs. Is there any thing do be taken care which iam missing. Thanks

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        Is it really a Window ? Not a derived class ? I assume not. Try setting breakpoints in your code to see which part of the process is taking that long.

        Christian Graus Driven to the arms of OSX by Vista. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums. I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp

        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