SharpDX.Direct2D1.StrokeStyleProperties AsianSSProps = new SharpDX.Direct2D1.StrokeStyleProperties(); switch( OvernightDashStyleSelection ) { case DashStyleHelper.Dash: AsianSSProps.DashStyle = SharpDX.Direct2D1.DashStyle.Dash; break; case DashStyleHelper.DashDot: AsianSSProps.DashStyle = SharpDX.Direct2D1.DashStyle.DashDot; break; case DashStyleHelper.DashDotDot: AsianSSProps.DashStyle = SharpDX.Direct2D1.DashStyle.DashDotDot; break; case DashStyleHelper.Dot: AsianSSProps.DashStyle = SharpDX.Direct2D1.DashStyle.Dot; break; case DashStyleHelper.Solid: AsianSSProps.DashStyle = SharpDX.Direct2D1.DashStyle.Solid; break; default: AsianSSProps.DashStyle = SharpDX.Direct2D1.DashStyle.Solid; break; }
This is what dash and anything with Dash in it looks like:
Dots are simply blank, as though I rendered them invisible. Solid is the only thing that shows what you'd expect.
My property so the user can choose the line style they prefer:
Display(Name = "Dash style selection", Description = "Select the dash style for the Asian line to be drawn", Order = 2, GroupName = "Asian line options")] public DashStyleHelper OvernightDashStyleSelection { get; set; }
Anyone figure this out yet? It would be kinda nice if all the styles worked right.
Thanks!
Comment