protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     if (!(e.Parameter is PwGroup group))
     {
         group = DatabaseService.Instance.RootGroup10;
     }
     ViewModel = new GroupsVm(group);
 }
        /*private void CoreTitleBar_IsVisibleChanged(CoreApplicationViewTitleBar sender, object args) =>
         *  AppTitleBar.Visibility = sender.IsVisible ? Visibility.Visible : Visibility.Collapsed;
         *
         * private void CoreTitleBar_LayoutMetricsChanged(CoreApplicationViewTitleBar coreTitleBar, object args) => UpdateTitleBarLayout(coreTitleBar);
         *
         * private void UpdateTitleBarLayout(CoreApplicationViewTitleBar coreTitleBar)
         * {
         *  // Get the size of the caption controls area and back button
         *  // (returned in logical pixels), and move your content around as necessary.
         *  LeftPaddingColumn.Width = new GridLength(coreTitleBar.SystemOverlayLeftInset);
         *  RightPaddingColumn.Width = new GridLength(coreTitleBar.SystemOverlayRightInset);
         *  //BackBorder.Margin = new Thickness(0, 0, coreTitleBar.SystemOverlayLeftInset, 0);
         *  AutoSuggestBox.Margin = new Thickness(0, 5, coreTitleBar.SystemOverlayRightInset, 5);
         *
         *  // Update title bar control size as needed to account for system size changes.
         *  //AppTitleBar.Height = coreTitleBar.Height;
         *  AppTitleBar.Height = 44;
         * }*/

        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            if (!(e.Parameter is GroupEntity group))
            {
                group = _databaseService.RootGroupEntity;
            }
            Vm = new GroupsVm(group);
        }