<Grid x:Name="LayoutRoot" Background="White">
<StackPanel>
<TextBlock x:Name="textBlock" Text="Hello!"></TextBlock>
<Button x:Name="button1" Click="button1_Click" Content="Click Me"></Button>
</StackPanel>
</Grid>
- Click the Design tab to switch to Design view, and double click on the button, to insert code of button1_Click() in MainPage.xaml.vb.
- Enter the code:
Private Sub button1_Click(sender As Object, e As RoutedEventArgs)
textBlock.Text = "Hello, I'm here!"
End Sub
- Run it.
Next:
- Border of Silverlight
No comments:
Post a Comment