Tim
Tim

Reputation: 1769

How do I implement a "Frame effect" in Silverlight

I would like to reproduce this effect : alt text

How can I do with xaml ?

(note that the text can be variable)

Thanks in advance for your help

Upvotes: 1

Views: 650

Answers (1)

Francesco De Vittori
Francesco De Vittori

Reputation: 9290

You can easily achieve this with a combination of Border and Grid panels:

<Grid Width="200" Height="200" VerticalAlignment="Center" HorizontalAlignment="Center">
    <Border BorderThickness="1" BorderBrush="Black" Margin="0,7,0,0">
        <TextBlock Text="Lorem Ipsum..." Margin="20"/>
    </Border>
    <Border Background="White" Margin="10,0,10,0" HorizontalAlignment="Left" VerticalAlignment="Top">
        <TextBlock Text="My Title" />
    </Border>
</Grid>

Upvotes: 4

Related Questions