Hello Carolina,
Thank you for writing back.
You need to create a proper path. For example, you can add several rectangles to paint the border and the upper left part (the attached image shows the result on my side):
public
class
AShape : Telerik.WinControls.ElementShape
{
public
override
GraphicsPath CreatePath(Rectangle bounds)
{
GraphicsPath path =
new
GraphicsPath();
path.AddRectangle(
new
RectangleF(bounds.X, bounds.Y, 20, 20));
//left
path.AddRectangle(
new
RectangleF(bounds.X, bounds.Y + 20, 2, bounds.Height - 20));
//bottom
path.AddRectangle(
new
RectangleF(bounds.X + 2, bounds.Y + bounds.Height - 2, bounds.Width - 2, 2));
//top
path.AddRectangle(
new
RectangleF(bounds.X + 20, bounds.Y, bounds.Width - 20, 2));
//right
path.AddRectangle(
new
RectangleF(bounds.X + bounds.Width - 2, bounds.Y + 2, 2, bounds.Height - 4));
path.AddString(
"V"
,
new
FontFamily(
"Arial"
), 0, 10,
new
Point(5, 5), StringFormat.GenericTypographic);
return
path;
}
}
Please let me know if there is something else I can help you with.
Regards,
Dimitar
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the
Telerik API Analyzer and share your thoughts.