Joymon's world of WPF
Abt me :Now a mad rider on the WPF road
Monday, May 14, 2007
Writing C# inside XAML
<Grid >
<Button Name="button1" Click="Clicked" Content="Click Me!"/>
<x:Code>
<![CDATA[
void Clicked(object sender, RoutedEventArgs e)
{
button1.Content = "Hello World";
}
]]>
</x:Code>
</Grid>
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment