Created
March 24, 2021 23:43
-
-
Save Char0394/89742156925ff6e92e958fa52ca21ce2 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
using Prism.Mvvm; | |
using Prism.Navigation; | |
using SharedTransitionPrimSample.Models; | |
namespace SharedTransitionPrimSample.ViewModels | |
{ | |
public class DetailPageViewModel : BindableBase, IInitialize | |
{ | |
private Place _placeSelected; | |
public Place PlaceSelected | |
{ | |
get => _placeSelected; | |
set => SetProperty(ref _placeSelected, value); | |
} | |
public void Initialize(INavigationParameters parameters) | |
{ | |
if (parameters.TryGetValue("PLACE", out Place place)) | |
{ | |
PlaceSelected = place; | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment