Пример #1
0
 /// <summary>
 /// Initializes this presentation with a specified presentation area.
 /// This will be automatically called when creating a presentation.
 /// </summary>
 /// <param name="area">The presentation area that describes, where this presentation should be shown on the screen.</param>
 public void Init(PresentationArea area)
 {
     this.form.Area = area;
 }
Пример #2
0
 /// <summary>
 /// Initializes this presentation with a specified presentation area.
 /// This will be automatically called when creating a presentation.
 /// </summary>
 /// <param name="area">The presentation area that describes, where this presentation should be shown on the screen.</param>
 public void Init(PresentationArea area)
 {
     this.form.Area = area;
 }
 public virtual void Init(PresentationArea area)
 {
     this.area = area;
 }
Пример #4
0
        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;
            }
        }
        public override void Init(PresentationArea area)
        {
            base.Init(area);

            this.Area.WindowLocationChanged += (sender, args) =>
            {
                if (isShown)
                {
                    doc.Move(Area.WindowLocation.X, Area.WindowLocation.Y);
                }
            };
        }