Skip to content

Instantly share code, notes, and snippets.

@QiMata
Created August 27, 2018 12:52
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 QiMata/477f121dd5d80c9b92cf69ecd9237984 to your computer and use it in GitHub Desktop.
Save QiMata/477f121dd5d80c9b92cf69ecd9237984 to your computer and use it in GitHub Desktop.
Code Snippet for Team
class ChildViewModel
{
//some properties
}
class ParentView : ContentPage
{
private ChildViewModel _child;
public void ShowChild()
{
if (_child == null)
{
_child = new ChildViewModel();
}
var childPage = new ContentPage
{
BindingContext = _child;
};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment