Alvin’s Blog

November 18, 2008

XBAP – Clear cache

Filed under: WPF — amcbride @ 1:55 am
Tags:

mage -cc

December 13, 2007

WPF – DoEvents()

Filed under: WPF — amcbride @ 5:50 pm
        /// <summary>
        /// Allows the completion of any UI processing
        /// </summary>
        private void DoEvents()
        {
            Application.Current.Dispatcher.Invoke(DispatcherPriority.Background, new ThreadStart(delegate { }));
        }

December 12, 2007

WPF – Execute UI code in separate Thread

Filed under: WPF — amcbride @ 11:06 pm
this.Dispatcher.Invoke(DispatcherPriority.Normal, (MyDelegate) delegate()
     {
          // Only if we should show progress 
          if (_ShowProgress == true)
          {
               Wait.Visibility = Visibility.Visible;
               DoEvents();
          }
     }

Blog at WordPress.com.