I'd like to specify by own where a text should be wrapped in the first place,
than i'd like to take the TextWrapping the rest. So i tried to set a display title
for my diagram node with things like \n < br / > or Enviroment.NewLine,
but it seems like that this is currently not supported.
var displayTitle = "my\nnode\ntitle";
var style = new AnnotationStyle { Bold = true, FontFamily = "Comic Sans MS", FontSize = 24, TextWrapping = TextWrap.Wrap };
base.Annotations = new ObservableCollection
{
new DiagramNodeAnnotation
{
Content = displayTitle,
Width = base.Width - 10,
Height = base.Height - 10,
Style = style,
Constraints = AnnotationConstraints.ReadOnly
}
};