private void OnShownChanged(object sender, ShownArgs e) { if (!e.Shown) { Window.Current.SetTitleBar(TitleGrid); } }
private void OnShownChanged(object sender, ShownArgs e) { if (!e.Shown) { CustomTitleBar(); } }
private void Control_OnShownChanged(object sender, ShownArgs e) { if (e.Shown) { _titleBarUc.Visibility = Visibility.Collapsed; if (_isDrawerSlided && CoreWindow.GetForCurrentThread().Bounds.Width < WIDTH_THRESHOLD) { _isDrawerSlided = false; ToggleDrawerAnimation(false); ToggleDrawerMaskAnimation(false); } } else { _titleBarUc.Visibility = Visibility.Visible; Window.Current.SetTitleBar(_titleBarUc); } }