Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created December 3, 2016 11:47
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 angelovstanton/6314c527d30b3ce0f820f5aba3ed2337 to your computer and use it in GitHub Desktop.
Save angelovstanton/6314c527d30b3ce0f820f5aba3ed2337 to your computer and use it in GitHub Desktop.
public class ItemPageNavigationBehaviour : ActionBehaviour
{
private readonly ItemPage itemPage;
private readonly string itemUrl;
public ItemPageNavigationBehaviour(string itemUrl)
{
this.itemPage = UnityContainerFactory.GetContainer().Resolve<ItemPage>();
this.itemUrl = itemUrl;
}
protected override void PerformAct()
{
this.itemPage.Navigate(this.itemUrl);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment