예제 #1
0
        public void Init(PresentationArea area)
        {
            WpfPresentationWindow.Instance.Area = area;
            this.area = area;

            this.control.Width  = area.WindowSize.Width;
            this.control.Height = area.WindowSize.Height;

            area.WindowSizeChanged += area_WindowSizeChanged;
        }
예제 #2
0
        public override void Init(PresentationArea area)
        {
            base.Init(area);

            this.Area.WindowLocationChanged += (sender, args) =>
            {
                if (isShown)
                {
                    doc.Move(Area.WindowLocation.X, Area.WindowLocation.Y);
                }
            };
        }
        public void Load(bool manualUpdate, PresentationArea area)
        {
            this.area = area;

            if (!manualUpdate)
            {
                webControl = new WebControl();
                ForegroundGrid.Children.Add(webControl);
            }
            else
            {
                int w = area.WindowSize.Width;
                int h = area.WindowSize.Height;
                webView         = WebCore.CreateWebView(w, h);
                webView.Surface = new ImageSurface(null);
                wb1             = new WriteableBitmap(w, h, 96, 96, PixelFormats.Pbgra32, null);
                wb2             = new WriteableBitmap(w, h, 96, 96, PixelFormats.Pbgra32, null);
                rect            = new Int32Rect(0, 0, w, h);

                area.WindowSizeChanged += area_WindowSizeChanged;
            }
        }
예제 #4
0
 public virtual void Init(PresentationArea area)
 {
     this.area = area;
 }
 internal PresentationManager()
 {
     this.area        = new PresentationArea();
     this.blackscreen = CreatePresentation <WordsLive.Presentation.Wpf.Blackscreen>();
 }