Hi,
I am new to Silverlight and this website, so sorry if I am posting in the wrong section.
I am trying to create a custom border control in Silverlight 2 which acts like the Border control already existing in System.Windows.Controls, however I want it to have a different look (specifically, I am trying to draw sharp corners rather than rounded corners).
I want to be able to set the content property of this control in xaml just like the Border control, so that it is easy to add any kind of item inside it
e.g.:
<CustomBorder>
<TextBox />
</CustomBorder>
So far this is what I have tried to do:
<
UserControl x:Class="Test.CustomBorder"
xmlns="http://schemas.microsoft.com/client/2007"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Canvas>
<Polygon x:Name="polygon" Stroke="Black" StrokeThickness="1" />
<ContentPresenter />
</Canvas>
</UserControl>
However, when this is used and something is placed in the Content of the CustomBorder as shown in the example above, the entire actual content is replaced, so the Polygon is not shown.
I have tried binding the ContentPresenter to the Content of the actual UserControl as well, and that didn't work.
Can anyone help show me what I am doing wrong here? Any help would be appreciated 
Thanks.