protected override void OnInitialized(EventArgs e) { base.OnInitialized(e); Loaded += AppBarWindow_Loaded; }