/// <summary> /// Initializes a new instance of the <see cref="ContainerCollection"/> class. /// </summary> public ContainerCollection() { Containers = new Containers(); this.SizeChanged += ContainerCollection_SizeChanged; bitmapImage = new Image(); bitmapImage.Stretch = Stretch.None; #if DIRECTX2D this.factory = D2D.D2DFactory.CreateFactory(D2D.D2DFactoryType.Multithreaded); this.Directx2DGraphics = new D3D10Image(); #endif }
/// <summary> /// Initializes a new instance of the Scene class. /// <summary> protected Directx2DBitmap() { // We'll create a multi-threaded one to make sure it plays nicely with WPF this.factory = D2D.D2DFactory.CreateFactory(D2D.D2DFactoryType.Multithreaded); }