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_border.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: <Border Canvas.Left="30" Canvas.Top="30" Background="#FFC" Width="400"
11: Padding="15" CornerRadius="10" BorderBrush="#F00" BorderThickness="1">
12: <TextBlock FontSize="18" Foreground="#00C" HorizontalAlignment="Center"
13: Text="Text mit Rahmen (Border-Element)"/>
14: </Border>
15:
16: <Border Canvas.Left="30" Canvas.Top="110" Background="#EEE" Width="400"
17: Padding="15" CornerRadius="10" BorderBrush="#FC0" BorderThickness="1,3,6,9">
18: <TextBlock FontSize="16" Foreground="#00C" HorizontalAlignment="Center"
19: Text="Border-Element / BorderThickness="1,3,6,9""/>
20: </Border>
21:
22: </Canvas>
23:
24: </UserControl>
[zum Anfang]