Silverlight/XAML – Learning by Coding
1: <?xml version="1.0" encoding="UTF-8"?>
2: <!-- coded by Thomas Meinike 08/08 -->
3: <UserControl x:Class="sl2_radiobutton.Page"
4: xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
5: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
6: Width="800" Height="600">
7:
8: <Canvas>
9:
10: <StackPanel Canvas.Left="30" Canvas.Top="30" HorizontalAlignment="Left">
11:
12: <RadioButton GroupName="radio" Content="Radio Button 1" FontSize="12"/>
13: <RadioButton GroupName="radio" Content="Radio Button 2" FontSize="12" IsChecked="True"/>
14: <RadioButton GroupName="radio" Content="Radio Button 3" FontSize="12"/>
15: <!-- wesentliche Event-Handler: Click, Checked, Unchecked -->
16:
17: </StackPanel>
18:
19: </Canvas>
20:
21: </UserControl>
[zum Anfang]