开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜