Strokes

How can I add a Stroke to a rectangle but only to the Top and Bottom? Is posible?

The way i usually do it is with rectangles.

Here is an example:

<Panel Height="50">
    <Rectangle Height="2" Alignment="Top">
        <SolidColor Color="#0000ff"/>
    </Rectangle>
    <Rectangle Height="2" Alignment="Bottom">
        <SolidColor Color="#0000ff"/>
    </Rectangle>
    <Rectangle>
        <SolidColor Color="#ff0000"/>
    </Rectangle>
</Panel>

Great idea! Thanks!