예제 #1
0
        public void CollapseLeftPanel()
        {
            if (NavigationHelper.CurrentView() == typeof(CalendarView))
            {
                MainContent.Margin = new Thickness(80, 20, 50, 20);
            }

            changeLeftPanelState(eLeftPanelStates.LeftPanelCollapsed);
            VisualStateManager.GoToElementState(LayoutRoot, eLeftPanelFullExpandButtonStates.HideFullExpandButton.ToString(), true);
        }
예제 #2
0
 protected static void Execute(DireccionEntregaModel dirEntrega)
 {
     if (NavigationHelper.CurrentView() != typeof(FichaClienteView))
     {
         // Ir a la ficha cliente
         App.Locator.FichaClienteViewModelStatic.ClienteActual = dirEntrega;
         NavigationHelper.Navigate <FichaClienteView>();
         MainViewModel.MainViewModelMsg.Send(new MainViewModel.MainViewModelMsg(MainViewModel.eMainViewModelMsg.CollapseLeftPanel));
     }
     else
     {
         ClienteBusiness.ShowVentanaDetalle(dirEntrega);
     }
 }