This is a followup to this
forum question. In the earlier question, I found away to change the appearance of the flowchart designer in its collapsed state by changing the template of the activity designer. This seems to work pretty well. The one thing I've noticed is
that when I replace the flowchart's template with my own, even if I have a very small width to my template content, there seems to be some minimum width to the selected designer. That is, if my style looks like this:
<ControlTemplate x:Key="FlowchartDesignerCollapsedTemplate" TargetType="swd:ActivityDesigner">
<TextBlock Text="Hello, world!"/>
The width of the designer selected area is significantly wider than the width of the characters in 'Hello, world!'. If I have a border around my text, then my border is much wider than necessary. If I don't have a border, then when I mouse over
or select the activity designer, I see the right selection rectangle much further to the right of my text than I would expect.
Where is this extra width coming from (it's not in my template) and how can I get rid of it?