void FlashMessage(string text, Brush background) { var label = new FlashLabel { Content = text, Background = background, FlashDuration = TimeSpan.FromSeconds(5), }; Grid.SetRow(label, 0); Grid.SetColumn(label, 0); Grid.SetZIndex(label, int.MaxValue); grid.Children.Add(label); label.Done += delegate { grid.Children.Remove(label); }; }