Beispiel #1
0
 public BoundPage()
 {
     VM = InjectionManager.GetViewModel <T>();
     this.BindingContext = VM;
     if (!string.IsNullOrEmpty(VM.PageTitle))
     {
         VM.PageTitle = this.Title;
     }
     this.SetBinding(ContentPage.TitleProperty, "PageTitle");
 }
Beispiel #2
0
        public TelephonyBoundPage()
        {
            VM = InjectionManager.GetViewModel <T>();
            this.BindingContext = VM;
            if (!string.IsNullOrEmpty(VM.PageTitle))
            {
                VM.PageTitle = this.Title;
            }
            this.SetBinding(ContentPage.TitleProperty, "PageTitle");

            if (CoreSettings.AppData.Instance.Settings.AnalyticsEnabled)
            {
                VM.Log.LogAnalytics(this.GetType().FullName);
            }
        }
 public BoundMasterDetailPage()
 {
     VM = InjectionManager.GetViewModel <T>();
     this.BindingContext = VM;
 }