Beispiel #1
0
        private void TextBlock_ManipulationCompleted(object sender, ManipulationCompletedEventArgs e)
        {
            IUpdatable upd = ((UserVm)this.DataContext).Photostream as IUpdatable;

            if (upd != null)
            {
                upd.Refresh();
            }
        }
Beispiel #2
0
        private void btnRefresh_Click(object sender, RoutedEventArgs e)
        {
            IUpdatable vm = DataContext as IUpdatable;

            if (vm != null)
            {
                vm.Refresh();
            }
        }
 static private void UpdateProgressBar(IUpdatable statusControl, int progress)
 {
     statusControl.Value = progress;
     statusControl.Refresh();
 }