Example #1
0
        public static void Draw(UIElementCollection children)
        {
            if (myBannerText == null)
            {
                return;
            }

            Label text = myBannerText.GetLabel();

            if (text == null)
            {
                myBannerText = null;
                return;
            }

            children.Add(text);
        }
Example #2
0
 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;
 }