Window生命周期 SourceInitialized:窗口初始化-获取一个句柄( Initialized ) ContentRendered:窗口首次呈现(Loaded) Activated、Deactivated:窗口的活动状态 Closing、Closed:窗口的关闭(Unloaded) /// <summary> /// MainWindow.xaml 的交互逻辑 /// </summary> public partial class MainWindow