Hi guys.

I'm working on a new project and seem to be a little stuck. Frankly MS should have included the ability to draw dashed and dotted borders directly into the border control.

I have blocks of XAML like this:

Code:
<Border Grid.Column="1" Grid.Row="8" Style="{StaticResource AlkaliMetalDecay}">
    <StackPanel Style="{StaticResource ElementStack}">
        <TextBlock Style="{StaticResource StateSolid}">87</TextBlock>
        <TextBlock>Fr</TextBlock>
    </StackPanel>
</Border>
What I need is for the border element here to show a dotted border around the content. I've got no idea how this should be done, though it could probably be done by combining a template for the StackPanel and a Rectangle element - though I have no idea how.