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 : What event will be triggered after window_loaded

WPF : What event will be triggered after window_loaded

Scheduled Pinned Locked Moved WPF
questioncsharpwpf
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.
  • D Offline
    D Offline
    DavJes
    wrote on last edited by
    #1

    Hi,, I want to invoke a method immediately after loading the Window, but I see that Constructor of the window class is called before load event. So how do i call my method once the window is loaded ? even I tried initialized method too. thanks

    P S 2 Replies Last reply
    0
    • D DavJes

      Hi,, I want to invoke a method immediately after loading the Window, but I see that Constructor of the window class is called before load event. So how do i call my method once the window is loaded ? even I tried initialized method too. thanks

      P Offline
      P Offline
      parama_chakra
      wrote on last edited by
      #2

      Either you do your thing in the constructor or after Window is loaded. You need to articulate what you want.

      If winter comes is spring far behind? - (PBShelley -Ode to the West Wind)

      1 Reply Last reply
      0
      • D DavJes

        Hi,, I want to invoke a method immediately after loading the Window, but I see that Constructor of the window class is called before load event. So how do i call my method once the window is loaded ? even I tried initialized method too. thanks

        S Offline
        S Offline
        SledgeHammer01
        wrote on last edited by
        #3

        Not everything is "ready for use" at one point. Some stuff is ready by the time you get to the constructor, some stuff not til the WindowLoaded event, other stuff is not ready til OnApplyTemplate, etc. You have to be more specific.

        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