Skip to content

Instantly share code, notes, and snippets.

@Char0394
Created March 24, 2021 23:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Char0394/89742156925ff6e92e958fa52ca21ce2 to your computer and use it in GitHub Desktop.
Save Char0394/89742156925ff6e92e958fa52ca21ce2 to your computer and use it in GitHub Desktop.
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