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); }
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); } }