开发者

What events are invoked once the controls Loaded events already fired?

开发者 https://www.devze.com 2023-01-22 12:27 出处:网络
My windows has many ListBoxes that load 开发者_开发百科their items in the Loaded event. After they are all loaded I have to run a method. I found out that the Grid Loaded event happens before its cont

My windows has many ListBoxes that load 开发者_开发百科their items in the Loaded event. After they are all loaded I have to run a method. I found out that the Grid Loaded event happens before its controls Loaded. What method will fire once after that?


While this not answers the title question, it does solve my problem.

  • The Initialized events are fired prior the Loaded events.
  • When you have TabControl it will fire a TabItem's controls Loaded event every time the SelectedIndex changes

Knowing that I:

  1. replaced every Loaded event by a Initialized one and
  2. created a Loaded event for the MainWindow that will run after all Initialized
0

精彩评论

暂无评论...
验证码 换一张
取 消