Inheritance: System.Windows.DependencyObject
Exemplo n.º 1
0
        public static Window CreateWebPageDialog(string absoluteUriString, IPropertyEditorWizard callbackHandler, double width = 800, double height = 600, string leftTitle = "", string rightTitle = "")
        {
            Browser.CallbackHandler.PropertyEditorViewModel = callbackHandler;

            var window = new WebBrowserWindow { Width = width, Height = height };

            var viewModel = new WebBrowserViewModel { RightTitle = rightTitle, LeftTitle = leftTitle };
            window.DataContext = viewModel;

            if (callbackHandler != null)
            {
                callbackHandler.NavigateRequested += uri => window.Browser.LoadSafe(uri);
                callbackHandler.Owner = window;
            }

            window.Browser.LoadSafe(absoluteUriString);

            return window;
        }
Exemplo n.º 2
0
        public static Window CreateWebPageDialog(string absoluteUriString, IPropertyEditorWizard callbackHandler, double width = 800, double height = 600, string leftTitle = "", string rightTitle = "")
        {
            Browser.CallbackHandler.PropertyEditorViewModel = callbackHandler;

            var window = new WebBrowserWindow {
                Width = width, Height = height
            };

            var viewModel = new WebBrowserViewModel {
                RightTitle = rightTitle, LeftTitle = leftTitle
            };

            window.DataContext = viewModel;

            callbackHandler.NavigateRequested += uri => window.Browser.LoadSafe(uri);
            callbackHandler.Owner              = window;

            window.Browser.LoadSafe(absoluteUriString);

            return(window);
        }