Esempio n. 1
0
        void OnClick(object sender, EventArgs e)
        {
            var page = new MessagingCenterTargetPage();

            MessagingCenter.Subscribe <MessagingCenterTargetPage, double>(this, "SliderValueChanged", OnSliderValueChanged);
            Navigation.PushAsync(page);
        }
Esempio n. 2
0
 private void OnSliderValueChanged(MessagingCenterTargetPage source, double newValue)
 {
     label.Text = newValue.ToString();
 }