Esempio n. 1
0
        public MainViewModel()
        {
            _applicationPropertiesService = DependencyService.Get <IApplicationPropertiesService>();

            //MessagingCenter.Subscribe<MainPage>(this, "GetTitle", (sender) =>
            //{
            //    this.Title = _applicationPropertiesService.GetTitle();

            //});

            this.Title = _applicationPropertiesService.GetTitle();
        }
Esempio n. 2
0
 public MessageCenterService()
 {
     _applicationPropertiesService = DependencyService.Get <IApplicationPropertiesService>();
 }
Esempio n. 3
0
        //public ICommand UpdateTitleCommand { get; private set; }

        public UpdateTitleViewModel()
        {
            _applicationPropertiesService = DependencyService.Get <IApplicationPropertiesService>();
            //UpdateTitleCommand = new Command(UpdateTitle);
            this.Title = _applicationPropertiesService.GetTitle();
        }