static ViewModelLocator()
 {
     navigationService = new NavigationService();
     Main = new MainViewModel(ViewModelBase.IsInDesignModeStatic, navigationService);
     Track = new TrackViewModel(ViewModelBase.IsInDesignModeStatic, navigationService);
     Palestrante = new PalestranteViewModel(ViewModelBase.IsInDesignModeStatic, navigationService);
     Palestra = new PalestraViewModel(ViewModelBase.IsInDesignModeStatic, navigationService);
 }
        public MainViewModel(bool isInDesignModeStatic, NavigationService navigationService)
        {
            Tracks = new ObservableCollection<Track>();
            Palestrantes = new ObservableCollection<Palestrante>();
            Palestras = new ObservableCollection<Palestra>();

            if (isInDesignModeStatic)
                LoadDesignData();
            else
                LoadTracks();

            TrackSelected = new RelayCommand<Track>(track => navigationService.NavigateTo(string.Format("/TrackView.xaml?id={0}", track.Id)));
            PalestranteSelected = new RelayCommand<Palestrante>(palestrante => navigationService.NavigateTo(string.Format("/ViewPalestrante.xaml?id={0}", palestrante.Id)));
            PalestraSelected = new RelayCommand<Palestra>(palestra => navigationService.NavigateTo(string.Format("/PalestraView.xaml?id={0}", palestra.Id)));
            MaisPalestrante = new RelayCommand(LoadPalestrantes);
            PanoramaChangedCommand = new RelayCommand<SelectionChangedEventArgs>(PanoramaChanged);
        }
        public ViewModelLocator()
        {
            navigationService = new NavigationService();
            ServiceLocator.SetLocatorProvider(() => SimpleIoc.Default);

            if (ViewModelBase.IsInDesignModeStatic)
            {

            }
            else
            {

            }

            SimpleIoc.Default.Register(() => new MainViewModel(navigationService));
            SimpleIoc.Default.Register(() => new TirinhaViewModel(navigationService));
        }