Example #1
0
        private void winMain_Loaded(object sender, RoutedEventArgs e)
        {
            InitUI();
            UpdataSoundButton();

            //webMain.Navigate("http://www.dmm.com/netgame/social/-/gadgets/=/app_id=486104/"); //花骑士
            //webMain.Navigate("http://www.dmm.com/netgame/social/-/gadgets/=/app_id=825012/"); //刀剑
            //webMain.Navigate("https://www.whatismybrowser.com/"); //花骑士


            ChromeWindow.Create(this);

            ChromeWindowSynchronize();
        }
Example #2
0
            public ChromePart(ChromeWindow window, Dock position)
            {
                this._customContentHost = new ContentControl();
                this.Edge = new GlowingEdge {
                    Position = position,
                };

                var grid = new Grid();

                grid.Children.Add(this.Edge);
                grid.Children.Add(this._customContentHost);

                this.Window         = window;
                this.Window.Content = grid;
            }