Esempio n. 1
0
 public LockedFramebuffer(WpfTopLevelImpl impl, WriteableBitmap bitmap, Vector dpi)
 {
     _impl   = impl;
     _bitmap = bitmap;
     Dpi     = dpi;
     _bitmap.Lock();
 }
Esempio n. 2
0
 public WpfAvaloniaHost()
 {
     _sync = SynchronizationContext.Current;
     _impl = new WpfTopLevelImpl();
     _impl.ControlRoot.Prepare();
     _impl.Visibility    = Visibility.Visible;
     SnapsToDevicePixels = true;
     UseLayoutRounding   = true;
     PresentationSource.AddSourceChangedHandler(this, OnSourceChanged);
 }
Esempio n. 3
0
 public CustomControlRoot(WpfTopLevelImpl impl) : base(impl)
 {
     EnforceClientSize = false;
 }
Esempio n. 4
0
 public Disposer(WpfTopLevelImpl impl)
 {
     _impl = impl;
 }
Esempio n. 5
0
 public WritableBitmapSurface(WpfTopLevelImpl impl)
 {
     _impl = impl;
 }
Esempio n. 6
0
 public WpfMousePointer(WpfTopLevelImpl impl) : base(Pointer.GetNextFreeId(), PointerType.Mouse, true)
 {
     _impl = impl;
 }
Esempio n. 7
0
 public WpfMouseDevice(WpfTopLevelImpl impl) : base(new WpfMousePointer(impl))
 {
     _impl = impl;
 }
Esempio n. 8
0
 public Direct2DImageSurface(WpfTopLevelImpl impl)
 {
     _impl = impl;
 }
Esempio n. 9
0
 public WpfMouseDevice(WpfTopLevelImpl impl)
 {
     _impl = impl;
 }