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_stackpanel.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" Background="#6FF">
11:
12: <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="10">
13: <TextBlock Margin="5" Text="Vorname:" FontSize="14"/>
14: <TextBox Height="25" Width="200" FontSize="14"/>
15: </StackPanel>
16:
17: <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="10">
18: <TextBlock Margin="5" Text="Nachname:" FontSize="14"/>
19: <TextBox Height="25" Width="200" FontSize="14"/>
20: </StackPanel>
21:
22: </StackPanel>
23:
24: </Canvas>
25:
26: </UserControl>
[zum Anfang]