Is there a “All Children loaded” event in WPF

后端 未结 7 954
陌清茗
陌清茗 2020-12-13 02:49

I am listening for the loaded event of a Page. That event fires first and then all the children fire their load event. I need an event that fires when ALL the children have

7条回答
  •  一向
    一向 (楼主)
    2020-12-13 03:14

    Loaded is the event that fires after all children have been Initialized. There is no AfterLoad event as far as I know. If you can, move the children's logic to the Initialized event, and then Loaded will occur after they have all been initialized.

    See MSDN - Object Lifetime Events.

提交回复
热议问题