示例#1
0
        public override void update(Widget newWidget)
        {
            ListWheelViewport oldWidget = this.widget;

            base.update(newWidget);
            ListWheelChildDelegate newDelegate = ((ListWheelViewport)newWidget).childDelegate;
            ListWheelChildDelegate oldDelegate = oldWidget.childDelegate;

            if (newDelegate != oldDelegate &&
                (newDelegate.GetType() != oldDelegate.GetType() || newDelegate.shouldRebuild(oldDelegate)))
            {
                this.performRebuild();
            }
        }
示例#2
0
 public ListWheelElement(ListWheelViewport widget) : base(widget)
 {
 }