private static void Main(string[] args) { var bravo = new Bravo(); var charlie = new Charlie(); Console.WriteLine(bravo.GetValue()); Console.WriteLine(charlie.GetValue()); }
public void Tick() { Action tick = () => { var bottom = (double)Charlie.GetValue(Canvas.BottomProperty); Charlie.SetValue(Canvas.BottomProperty, bottom + 1); }; Canvas.Dispatcher.BeginInvoke(tick); }