public static void Draw(UIElementCollection children) { if (myBannerText == null) { return; } Label text = myBannerText.GetLabel(); if (text == null) { myBannerText = null; return; } children.Add(text); }
public static void NewBanner(string s, Rect rect, bool scroll, System.Windows.Media.Color col) { myBannerText = (s != null) ? new BannerText(s, rect, scroll, col) : null; }