@@ -108,8 +108,8 @@ public override void Render(DrawingContext context)
108108 {
109109 StrokeThickness = 1 ,
110110 Stroke = FillColor . ToBrush ( ) ,
111- StartPoint = new Point ( 0 , 0 ) ,
112- EndPoint = new Point ( 8 , 0 )
111+ StartPoint = new Point ( 0 , 7 ) ,
112+ EndPoint = new Point ( 8 , 7 )
113113 }
114114 ] ;
115115 }
@@ -121,8 +121,8 @@ public override void Render(DrawingContext context)
121121 {
122122 StrokeThickness = 1 ,
123123 Stroke = FillColor . ToBrush ( ) ,
124- StartPoint = new Point ( 0 , 0 ) ,
125- EndPoint = new Point ( 0 , 8 )
124+ StartPoint = new Point ( 7 , 0 ) ,
125+ EndPoint = new Point ( 7 , 8 )
126126 }
127127 ] ;
128128 }
@@ -196,6 +196,7 @@ public override void Render(DrawingContext context)
196196 if ( visualBrush != null )
197197 {
198198 var panel = new Panel ( ) ;
199+ RenderOptions . SetEdgeMode ( panel , EdgeMode . Aliased ) ;
199200 panel . Children . AddRange ( visualBrush ) ;
200201 fillBrush = new VisualBrush ( panel )
201202 {
@@ -228,6 +229,7 @@ public override void Render(DrawingContext context)
228229 context . DrawEllipse ( fillBrush , borderPen , rect ) ;
229230 break ;
230231 case ShapeTypes . RoundedRectangle :
232+ case ShapeTypes . RoundedSquare :
231233 if ( BackStyle == BackStyles . Opaque )
232234 context . DrawRectangle ( BackColor . ToBrush ( ) , null , rect , width * 0.01 , height * 0.01 ) ;
233235 context . DrawRectangle ( fillBrush , borderPen , rect , width * 0.01 , height * 0.01 ) ;
0 commit comments