Exemplo n.º 1
0
        /// <summary>
        /// Adds a new web browser to the scatter control
        /// </summary>
        public void NewWebBrowser()
        {
            OurWebBrowser wb = new OurWebBrowser();
            ScatterViewItem item = new ScatterViewItem()
            {
                Width = 800,
                Height = 700,
                Content = wb
            };
            _webBrowsers.Add(wb);
            _scatterView.Items.Add(item);

            //watch for the save button
            wb.OnSaved += new EventHandler(wb_OnSaved);
        }
Exemplo n.º 2
0
        public WebAndKeyboard()
        {
            Grid grid = new Grid()
            {
                VerticalAlignment = System.Windows.VerticalAlignment.Stretch
            };
            grid.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto }); //web browser
            grid.RowDefinitions.Add(new RowDefinition() { Height = new GridLength(300) }); //keyboard
            base.Content = grid;

            _ourWebBrowser = new OurWebBrowser();
            Grid.SetRow(_ourWebBrowser, 0);
            grid.Children.Add(_ourWebBrowser);

            //TODO - add keyboard
        }