Is it good to create a usercontrol for Recurrsive code in xaml?

Posted by user281947 on Stack Overflow See other posts from Stack Overflow or by user281947
Published on 2010-05-28T10:27:34Z Indexed on 2010/05/28 10:31 UTC
Read the original article Hit count: 122

Filed under:
<Border BorderBrush="#C4C8CC" BorderThickness="0,0,0,1">
        <TextBlock x:Name="SectionTitle" FontFamily="Trebuchet MS" FontSize="14" FontWeight="Bold" Foreground="#3D3D3D"  />
    </Border>

I have to use the same above format at many places in a single xaml page, so for this i created a usercontrol and defined the above code inside it.

So my question is,
what i am doing is it right approach ?
Will it make the page to load slower then the above code used as it is without defining it in a new user control?

© Stack Overflow or respective owner

Related posts about silverlight-4.0