// Constructor public MainPage() { InitializeComponent(); _mandelBrot = new Mandelbrot(); _dispatcherTimer = new System.Windows.Threading.DispatcherTimer(); _dispatcherTimer.Interval = TimeSpan.FromMilliseconds(1.0); _dispatcherTimer.Tick += new EventHandler(t_Tick); _dispatcherTimer.Start(); var blockTimer = new System.Windows.Threading.DispatcherTimer(); blockTimer.Interval = TimeSpan.FromSeconds(10.0); blockTimer.Tick += (s, e) => { SwitchBottomStackPanels(); }; blockTimer.Start(); SwitchBottomStackPanels(); }