What events are invoked once the controls Loaded events already fired?
My windows has many ListBox
es 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 theLoaded
events. - When you have
TabControl
it will fire aTabItem
's controlsLoaded
event every time theSelectedIndex
changes
Knowing that I:
- replaced every
Loaded
event by aInitialized
one and - created a
Loaded
event for theMainWindow
that will run after allInitialized
精彩评论