mvvm - How to use Xamarin Forms Labs ViewModel from XAML? -
i tried mvvm implementation xamarin.forms project , xlabs' viewmodel looked best me. not know how make a, example, masterdetail xaml page it. testpage derived viewbase class. first approach this:
<?xml version="1.0" encoding="utf-8" ?> <toolkit:baseview xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:toolkit="clr-namespace:xlabs.forms.mvvm;assembly=xlabs.forms" x:class="xlabs.sample.pages.mvvm.mvvmsamplepage" title="mvvm"> <toolkit:baseview.content> <stacklayout> <button text="{binding navigatetoviewmodelbuttontext}" command="{binding navigatetoviewmodel}" /> </stacklayout> </toolkit:baseview.content> </toolkit:baseview> but inside baseview.content element can't put page. how use masterdetailpage or tabbedpage within it?
Comments
Post a Comment