customtheme question

Topics: SharpMap Project, SharpMap v0.9 / v1.x, Web Controls
Aug 7, 2008 at 7:26 PM
issue related to applying line style - using v0.9 this works when applied directly to a layer:

    layLines.Style.Outline = New Pen(Color.Black, 5)

 

    layLines.Style.Line =

New Pen(Color.DodgerBlue, 3)

 

    layLines.Style.Line.StartCap = System.Drawing.Drawing2D.LineCap.Round

    layLines.Style.Line.EndCap = System.Drawing.Drawing2D.LineCap.Round

    layLines.Style.Line.LineJoin = System.Drawing.Drawing2D.LineJoin.Round

    layLines.Style.EnableOutline =

True

 

when applied as a customtheme as:

 

Case "primary"

 

 

 

    style.Outline = New Pen(Color.Black, 4)

 

    style.Line =

New Pen(Color.Chocolate, 1)

 

    style.Line.StartCap = System.Drawing.Drawing2D.LineCap.Round

    style.Line.EndCap = System.Drawing.Drawing2D.LineCap.Round

    style.Line.LineJoin = System.Drawing.Drawing2D.LineJoin.Round

    style.EnableOutline =

True

 

 

 

    Return style

 

 

it ignores the outline - only the line is drawn.
any suggestions?