コード例 #1
0
 public DetailsPage()
 {
     InitializeComponent();
     //create VM obj
     vm = new DetailsPageVM();
     this.BindingContext = vm;
 }
コード例 #2
0
        public DetailsPageVM GetDetailsView <T>(Page page)
        {
            var viewModel = new DetailsPageVM
            {
                Id    = page.Id,
                Title = page.Title,
                Slug  = page.Slug,
                Body  = page.Body,
            };

            return(viewModel);
        }