Skip to content

Instantly share code, notes, and snippets.

@lgolubyev
Created May 24, 2022 12:13
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 lgolubyev/e51df71bb2e622f6efb17dc4c1afcd9e to your computer and use it in GitHub Desktop.
Save lgolubyev/e51df71bb2e622f6efb17dc4c1afcd9e to your computer and use it in GitHub Desktop.
public partial class MainPage
{
readonly MainViewModel _viewModel;
public MainPage(MainViewModel viewModel)
{
InitializeComponent();
BindingContext = _viewModel = viewModel;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment