public MainPageViewModel() { Instance = this; NumberValues = new ObservableCollection<double>( Enumerable.Range(0, 40).Select(i => i * 0.25463105308788066303) ); Random rand = new Random(); NumberValue = NumberValues[rand.Next(NumberValues.Count - 1)]; BooleanValue = false; DateTimeValue = DateTime.UtcNow; SimpleModels = new ObservableCollection<SimpleModel>(); for (int i = 0; i < 100; i++) { SimpleModels.Add(new SimpleModel()); } }
public MainPageViewModel() { _SpeechService = new Services.SpeechService.SpeechService(); Instance = this; }