Skip to content

Instantly share code, notes, and snippets.

@mgroves
Created March 9, 2014 22:17
Show Gist options
  • Select an option

  • Save mgroves/9455608 to your computer and use it in GitHub Desktop.

Select an option

Save mgroves/9455608 to your computer and use it in GitHub Desktop.
[Activity(MainLauncher=true, Label="Terms of Use")]
public class TermsView : MvxActivity
{
public new TermsViewModel ViewModel
{
get { return (TermsViewModel)base.ViewModel; }
set { base.ViewModel = value; }
}
protected override void OnViewModelSet ()
{
SetContentView (Resource.Layout.TermsPage);
var set = this.CreateBindingSet<TermsView, TermsViewModel>();
set.Bind(FindViewById<Button>(Resource.Id.acceptTermsButton))
.For("Click")
.To(vm => vm.AcceptTermsCommand);
set.Apply();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment