Web Design and Web Development Forum

  1. #1
    Vista06's Avatar
    Join Date
    Aug 2006
    Location
    In a van, down by the river
    Posts
    1,830
    Rep Power
    7
  2. Vista06 is on a distinguished road
  3. SplashScreen in WPF

    Hey.

    In Publier, I have a slight problem. On an XP machine, the window opens before it is ready to, and skips over the animations (only on a first run. After that, it is fine). They seem to have removed the Window.Load function in WPF, so how to I do a SplashScreen now? After all, all I want the SplashScreen to do is pre-load all the main programs required things, then show it.

    Thanks, Vista
    Cool new programming forum : SIGCONT
    Reply With Quote Reply With Quote
  4. #2
    Join Date
    Sep 2005
    Location
    UK
    Age
    27
    Posts
    807
    Rep Power
    0
  5. bfsog is on a distinguished road
  6. Re: SplashScreen in WPF

    Could you not create a sub main() and load the components/required functions in the splash/first form?
    Reply With Quote Reply With Quote
  7. #3
    gorda001's Avatar
    Join Date
    Jun 2005
    Location
    <0x79a3f6>
    Posts
    4,851
    Rep Power
    11
  8. gorda001 is on a distinguished road
  9. Re: SplashScreen in WPF

    This will probably explain it:
    http://blogs.msdn.com/llobo/archive/...a-Channel.aspx

    It's specifically for splashes with an alpha channel, but it should explain normal splashes too. I'm no WPF coder (well not much) so I couldn't say
    Last edited by gorda001; 11-20-2007 at 03:46 AM.
    Reply With Quote Reply With Quote
  10. #4
    Vista06's Avatar
    Join Date
    Aug 2006
    Location
    In a van, down by the river
    Posts
    1,830
    Rep Power
    7
  11. Vista06 is on a distinguished road
  12. Re: SplashScreen in WPF

    I am doing C#, but in a WPF project, things work a little dufferently. Like I said before, MS removed the "form.Load" function. I only have Window.Show(). When I get back home, I will try whar Grant said and the site Gorda mentioned.

    Vista
    Reply With Quote Reply With Quote
  13. #5
    waheedahmed's Avatar
    Join Date
    Apr 2006
    Location
    Pakistan
    Posts
    982
    Rep Power
    7
  14. waheedahmed is on a distinguished road
  15. Re: SplashScreen in WPF

    I don't know much WPF and I don't understand your question very well so I don't think my post would be very helpful.

    Is "form.Load" not an event? If it is the event you are looking for then WPF has a Loaded event.

    Reply With Quote Reply With Quote
  16. #6
    Vista06's Avatar
    Join Date
    Aug 2006
    Location
    In a van, down by the river
    Posts
    1,830
    Rep Power
    7
  17. Vista06 is on a distinguished road
  18. Re: SplashScreen in WPF

    Form.Load is an event, but Window.Load isn't. For all I know, doing Window1 win1 = new Window1() might pre-load it. Who knows? :p

    I'll try everything here and see.
    Cool new programming forum : SIGCONT
    Reply With Quote Reply With Quote
  19. #7
    gorda001's Avatar
    Join Date
    Jun 2005
    Location
    <0x79a3f6>
    Posts
    4,851
    Rep Power
    11
  20. gorda001 is on a distinguished road
  21. Re: SplashScreen in WPF

    Why not just use normal C# Forms? WPF isn't the answer to everything
    Reply With Quote Reply With Quote
  22. #8
    Vista06's Avatar
    Join Date
    Aug 2006
    Location
    In a van, down by the river
    Posts
    1,830
    Rep Power
    7
  23. Vista06 is on a distinguished road
  24. Re: SplashScreen in WPF

    I can use WinForms for the SplashScreen, no problem. I do want WPF for the main window, for too many reasons to list here.
    Cool new programming forum : SIGCONT
    Reply With Quote Reply With Quote

Similar Threads

  1. WPF: Can it be used in Documents?
    By Vista06 in forum General Programming
    Replies: 6
    Last Post: 10-19-2007, 02:16 PM
  2. Need help in XAML & WPF
    By aravinda777 in forum General Programming
    Replies: 1
    Last Post: 05-29-2007, 02:47 PM