Esempio n. 1
0
        private async void RefreshButton_Click(object sender, RoutedEventArgs e)
        {
            if (refreshImage == null)
            {
                refreshImage        = FlyoutHelper.FindNameInContainer <Image>(RefreshButton, "");
                refreshProgressRing = FlyoutHelper.FindNameInContainer <ProgressRing>(RefreshButton, "");
            }

            refreshImage.Visibility      = Visibility.Collapsed;
            refreshProgressRing.IsActive = true;

            await particleDevice.RefreshAsync();

            refreshProgressRing.IsActive = false;
            refreshImage.Visibility      = Visibility.Visible;
        }