예제 #1
0
 internal HTMLLogicWindow()
 {
     _Id = _GId++;
     _State = WindowLogicalState.Loading;
     _IsLiteningClose = false;
     CloseReady = new BasicRelayCommand(() => State = WindowLogicalState.Closed);
     EndOpen = new BasicRelayCommand(() => {if (_OpenTask!=null) _OpenTask.TrySetResult(null);} );
 }
        protected HTMLControlBase(IUrlSolver iIUrlSolver)
        {
            _IUrlSolver = iIUrlSolver;

            DebugWindow = new BasicRelayCommand(() => ShowDebugWindow());

            DebugBrowser = new BasicRelayCommand(() => OpenDebugBrowser());

            InitializeComponent();

            _IWPFWebWindowFactory = HTMLEngineFactory.Engine.Resolve(HTMLEngine);

            _WPFDoubleBrowserNavigator = new WPFDoubleBrowserNavigator(this, _IUrlSolver);
            _WPFDoubleBrowserNavigator.OnFirstLoad += FirstLoad;
        }