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

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

            //});

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

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