Пример #1
0
        protected virtual void OnNavigationMessage(NavigationMessage message)
        {
            switch (message.MessageType)
            {
            case NavigationMessageType.New:
                TileNavBaseItemViewModel vm = message.Source as TileNavBaseItemViewModel;
                if (vm != null && vm.IsSelected)
                {
                    NavigationService.Navigate("TileNavDetailsView", vm);
                    if (Selected != null)
                    {
                        Selected.IsSelected = false;
                    }
                    Selected = vm;
                }
                break;

            case NavigationMessageType.Back:
                OnBackCommand();
                break;
            }
        }
Пример #2
0
 protected override void OnNavigationMessage(NavigationMessage message)
 {
     base.OnNavigationMessage(message);
     TileBarService.CloseFlyout();
 }