Hello,
I need a rectangle with top, left, bottom border drawn (opened on the right side).
I've tried using a template with 3 lines :
static private ElementTemplate[] s_TextAreaCenterTemplate = new ElementTemplate[] {
new LineTemplate(0, 0, 100, 0),
new LineTemplate(100, 0, 100, 100),
new LineTemplate(100, 100, 100, 0),
new LineTemplate(100, 0, 0, 0)};
static private ElementTemplate[] s_IncompletePlaceHolderTemplate = new ElementTemplate[] {
new LineTemplate(100, 0, 0, 0),
new LineTemplate(0, 0, 0, 100),
new LineTemplate(0,100, 100, 100)};
static private MindFusion.Diagramming.Wpf.Shape s_IncompletePlaceHolderShape = new MindFusion.Diagramming.Wpf.Shape
(s_IncompletePlaceHolderTemplate,
null, // no decorations
s_TextAreaCenterTemplate,
FillRule.Nonzero,
"TextCenter");
But setting the Pen from the Shape to black, will draw the 4 lines ...
Any hint ?
Thanks
Didier