public DemoMap() { InitializeComponent(); Loaded += WindowLoaded; Closing += WindowClosing; _container = DiHelper.GetContainer(); }