Silverlight4入门之StackPanel控件(九)
来源:互联网 发布:同步助手软件 编辑:程序博客网 时间:2024/06/05 06:28
<UserControl x:Class="FirstSilverlightApplication.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="400" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"> <Grid x:Name="LayoutRoot" Background="White"> <StackPanel Height="103" HorizontalAlignment="Left" Margin="10,10,0,0" Name="stackPanel1" VerticalAlignment="Top" Width="287"> <Button Content="Button" Height="23" Name="button1" Width="75" /> <Button Content="Button" Height="23" Name="button2" Width="75" /> <Button Content="Button" Height="23" Name="button3" Width="75" /> <StackPanel Height="31" Name="stackPanel2" Width="226" Orientation="Horizontal"> <Button Content="Button" Height="25" Name="button4" Width="75" /> <Button Content="Button" Height="25" Name="button5" Width="75" /> <Button Content="Button" Height="25" Name="button6" Width="75" /> </StackPanel> </StackPanel> </Grid></UserControl>