Example #1
0
 public void Refresh()
 {
     ControlsContext.Current.ActionHandlerLocker.Acquire();
     CurrentStyleSheet.Assign((ILayoutable)ApplicationContext.Current.CurrentScreen.Screen);
     Relayout();
     RefreshView();
     ControlsContext.Current.ActionHandlerLocker.Release();
 }
Example #2
0
        public IBound ApplyStyles(IStyleSheet stylesheet, IBound styleBound, IBound maxBound)
        {
            if (_applied)
            {
                IDictionary <Type, IStyle> delta = CurrentStyleSheet.StylesIntersection(StylesOld, Styles);
                IBound bound = ReApply(delta, styleBound, maxBound);

                StylesOld = null;
                return(bound);
            }
            return(Apply(stylesheet, styleBound, maxBound));
        }