예제 #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);
        }