Saturday, March 24, 2012

Border of Silverlight

Modify on MainPage.xaml of last article of "Silverlight 5/Visual Basic: Add event handling code" to add borders on the TextBlock and Button.

    <Grid x:Name="LayoutRoot" Background="White">
<StackPanel>
<Border Margin="5" Background="Yellow">
<TextBlock x:Name="textBlock" Text="Hello!"></TextBlock>
</Border>
<Border Margin="20" Background="LightBlue" BorderBrush="SteelBlue" BorderThickness="5" CornerRadius="10">
<Button x:Name="button1" Click="button1_Click" Content="Click Me"></Button>
</Border>
</StackPanel>
</Grid>


Border of Silverlight

No comments:

Post a Comment