public override void Run(Window window) { Rect square = window.GetInnerSquare(); Log.Debug(square.ToString()); rect = new Rectangle(window) { Color = Color.Blue, Geometry = square }; rect.Show(); rect.AddRotaryEventHandler(EventHandler); rect.Activate(); window.BackButtonPressed += (s, e) => rect.RemoveRotaryEventHandler(EventHandler); }