@@ -108,8 +108,8 @@ public override void Render(DrawingContext context)
108
108
{
109
109
StrokeThickness = 1 ,
110
110
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 )
113
113
}
114
114
] ;
115
115
}
@@ -121,8 +121,8 @@ public override void Render(DrawingContext context)
121
121
{
122
122
StrokeThickness = 1 ,
123
123
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 )
126
126
}
127
127
] ;
128
128
}
@@ -196,6 +196,7 @@ public override void Render(DrawingContext context)
196
196
if ( visualBrush != null )
197
197
{
198
198
var panel = new Panel ( ) ;
199
+ RenderOptions . SetEdgeMode ( panel , EdgeMode . Aliased ) ;
199
200
panel . Children . AddRange ( visualBrush ) ;
200
201
fillBrush = new VisualBrush ( panel )
201
202
{
@@ -228,6 +229,7 @@ public override void Render(DrawingContext context)
228
229
context . DrawEllipse ( fillBrush , borderPen , rect ) ;
229
230
break ;
230
231
case ShapeTypes . RoundedRectangle :
232
+ case ShapeTypes . RoundedSquare :
231
233
if ( BackStyle == BackStyles . Opaque )
232
234
context . DrawRectangle ( BackColor . ToBrush ( ) , null , rect , width * 0.01 , height * 0.01 ) ;
233
235
context . DrawRectangle ( fillBrush , borderPen , rect , width * 0.01 , height * 0.01 ) ;
0 commit comments