Ejemplo n.º 1
0
 public async void UpdateWidth()
 {
     await Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
     {
         Bar.Width = ProgressFragment.GetWidthInCanvas(CanvasWidth);
     });
 }
Ejemplo n.º 2
0
        public ProgressBarFragment(ProgressFragment fragment)
        {
            ProgressFragment = fragment;

            DataContext = ProgressFragment;

            ProgressFragment.PropertyChanged += ProgressFragment_PropertyChanged;

            this.InitializeComponent();
        }