コード例 #1
0
        private IBound ApplyChild(IStyleSheet stylesheet)
        {
            IControlsContext context = ControlsContext.Current;
            RectangleF       app     = UIScreen.MainScreen.ApplicationFrame;
            IBound           bound   = StyleSheetContext.Current.CreateBound(app.Width, app.Height);

            Control child = GetChild();

            if (child != null)
            {
                context.CreateLayoutBehaviour(stylesheet, this).Screen(child, bound);

                IRectangle old = child.Frame;
                child.Frame = context.CreateRectangle(old.Left + app.Left, old.Top + app.Top, old.Width, old.Height);
            }
            return(bound);
        }
コード例 #2
0
 public static void Init(IControlsContext context)
 {
     Current = context;
 }
コード例 #3
0
ファイル: ControlsContext.cs プロジェクト: Fedorm/core-master
 public static void Init(IControlsContext context)
 {
     Current = context;
 }