Created
November 9, 2020 00:33
-
-
Save azimuthdeveloper/7aca6fc86eb12ca005347ad4dbf453a7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private async void OnSave() | |
{ | |
Item newItem = new Item() | |
{ | |
Id = Guid.NewGuid().ToString(), | |
Text = Text, | |
Description = Description | |
}; | |
await DataStore.AddItemAsync(newItem); | |
// This will pop the current page off the navigation stack | |
await Shell.Current.GoToAsync(".."); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment