public D2D.Factory Factory;
+ public D2D.StrokeStyle Get(D2D.RenderTarget render,HilightType type)
+ {
+ return this.Get(render.Factory, type);
+ }
+
+ [Obsolete]
public D2D.StrokeStyle Get(HilightType type)
{
+ return this.Get(this.Factory, type);
+ }
+
+ public D2D.StrokeStyle Get(D2D.Factory factory,HilightType type)
+ {
if(this.Factory == null || this.Factory.IsDisposed)
throw new InvalidOperationException();
D2D.StrokeStyle stroke;
{
this.DWFactory = new DW.Factory(DW.FactoryType.Shared);
#if METRO || WINDOWS_UWP
- this.D2DFactory = new D2D.Factory1(D2D.FactoryType.MultiThreaded);
+ this.D2DFactory = new D2D.Factory1(D2D.FactoryType.SingleThreaded);
#else
- this.D2DFactory = new D2D.Factory(D2D.FactoryType.MultiThreaded);
+ this.D2DFactory = new D2D.Factory(D2D.FactoryType.SingleThreaded);
#endif
this.Brushes = new ColorBrushCollection();
this.Strokes = new StrokeCollection();