简体   繁体   中英

WPF window_loaded event triggered but window is not loaded

I have an problem. I have tabitems and if these items have images in the in the header, the window_loaded event is triggered before the window become visible. If the tabitems are just plain old tabitems, the window is visible before the loaded event. Does anyone know why is that happening?

如上所述这里 ,我相信,你真的应该使用Window.ContentRendered代替Window.Loaded

@StillLearnin thanks for pointing to the right direction.

Instead of using Window_Loaded event I used Window_ContentRendered

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM