示例#1
0
        private void listView_PullProgressChanged(object sender, Comet.Controls.RefreshProgressEventArgs e)
        {
            if (e.PullProgress < 0.5)
            {
                transform.RotationX = 0;
            }
            else
            {
                transform.RotationX = 180 * ((e.PullProgress - 0.5) * 2);
            }

            refreshText.Visibility = e.PullProgress < 1 ? Visibility.Collapsed : Visibility.Visible;
        }
        private void listView_PullProgressChanged(object sender, Comet.Controls.RefreshProgressEventArgs e)
        {
            refreshindicator.Opacity = e.PullProgress;

            refreshindicator.Background = e.PullProgress < 1.0 ? new SolidColorBrush(Colors.Red) : new SolidColorBrush(Colors.Blue);
        }