コード例 #1
0
        /// <summary>
        /// This is a javascript application.
        /// </summary>
        /// <param name="page">HTML document rendered by the web server which can now be enhanced.</param>
        public Application(IDefaultPage page)
        {
            var content = new ApplicationCanvas();

            content.AttachToContainer(Native.Document.body);

            Native.Window.onresize +=
                delegate
            {
                content.Width  = Native.Window.Width;
                content.Height = Native.Window.Height;
            };
        }
コード例 #2
0
        /// <summary>
        /// This is a javascript application.
        /// </summary>
        /// <param name="page">HTML document rendered by the web server which can now be enhanced.</param>
        public Application(IDefaultPage page)
        {
            var content = new ApplicationCanvas();

            content.AttachToContainer(Native.Document.body);

            Native.Window.onresize +=
                delegate
                {
                    content.Width = Native.Window.Width;
                    content.Height = Native.Window.Height;
                };
        }