private void SaveAsFile(object ignore = null) { string filePath = FileDialogService.ShowSaveAsFileDialog(); if (!string.IsNullOrEmpty(filePath)) { dataService.SaveCollectionToFile(ProductList, filePath); this.FilePath = filePath; this.IsSaved = true; } }