Example #1
0
        public override void Tap(PointF p)
        {
            RssList c = Source as RssList;

            if (c == null)
            {
                return;
            }

            ListBox l = c.InternalList;

            ListBoxItem item = findSelectedItem(l, new System.Windows.Point(p.X, p.Y));

            if (item != null)
            {
                selectItem(l, item);
            }

            base.Tap(p);
        }
Example #2
0
        void AddFeed(string url)
        {
            ElementProperties prop = new ElementProperties();
            prop.ElementSupport.AddSupportForAll();

            RssList r = new RssList();
            r.Read(url);

            MTContainer cont = new MTSmoothContainer(r, canvas1, prop);
            framework.RegisterElement(cont);

            canvas1.Children.Add(r);

            cont.MaxX = (int)(this.screen_width);
            cont.MaxY = (int)(this.screen_height);
            cont.MinX = (int)(this.screen_width / 10);
            cont.MinY = (int)(this.screen_height / 10);
        }