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:///markup-compatibility/2006"
mc:Ignorable="d"
xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
d:DesignWidth="640" d:DesignHeight="480"
Title="StackPanelDemo Page">
<StackPanel Height="100" Name="stackPanel1" Width="200" Background="Yellow">
<Button Content="按钮一" Height="23" Name="button1" Width="100" />
<Button Content="按钮二" Height="23" Name="button2" Width="200" />
<Button Content="按钮三" Height="23" Name="button3" Width="400" />
</StackPanel>
</navigation:Page>
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:///markup-compatibility/2006"
mc:Ignorable="d"
xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
d:DesignWidth="400" d:DesignHeight="300"
Title="GridDemo1 Page">
<Grid x:Name="LayoutRoot" Background="Pink">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition Height="200" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100" />
<ColumnDefinition Width="100" />
<ColumnDefinition Width="100" />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Button Content="按钮一" Height="23" HorizontalAlignment="Left" Name="button1" VerticalAlignment="Center" Width="75" Grid.Column="0" Grid.Row="0" />
<Button Content="按钮二" Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Center" Name="button2" VerticalAlignment="Top" Width="75" />
<TextBox Grid.Column="1" Grid.Row="1" Height="23" HorizontalAlignment="Center" Name="textBox1" VerticalAlignment="Center" Width="80" Text="文本框" />
</Grid>
</navigation:Page>

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:///markup-compatibility/2006"
mc:Ignorable="d"
xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
d:DesignWidth="400" d:DesignHeight="300"
Title="GridDemo1 Page">
<Grid x:Name="LayoutRoot" Background="Pink">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition Height="200" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100" />
<ColumnDefinition Width="100" />
<ColumnDefinition Width="100" />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Button Content="按钮一" Height="220" HorizontalAlignment="Left" Name="button1" Width="75" Grid.Column="0" Grid.Row="0" Grid.RowSpan="2" />
<Button Content="按钮二" Grid.Column="1" Grid.Row="0" Height="23" HorizontalAlignment="Center" Name="button2" VerticalAlignment="Top" Width="75" />
<TextBox Grid.Column="1" Grid.Row="1" Grid.ColumnSpan="2" Height="23" Name="textBox1" VerticalAlignment="Center" Width="80" Text="文本框" />
<Button Content="按钮三" Grid.Column="2" Height="23" HorizontalAlignment="Left" Name="button3" VerticalAlignment="Top" Width="75" />
<Button Content="按钮四" Grid.Column="3" Grid.Row="1" Height="23" HorizontalAlignment="Left" Name="button4" VerticalAlignment="Top" Width="75" />
</Grid>
</navigation:Page>

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:///markup-compatibility/2006"
mc:Ignorable="d"
xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
d:DesignWidth="640" d:DesignHeight="480"
Title="CanvasDemo1 Page">
<Canvas Height="240" Name="canvas1" Width="300" Background="Teal">
<Button Canvas.Left="40" Canvas.Top="161" Content="登录" Height="23" Name="button1" Width="75" />
<TextBlock Canvas.Left="40" Canvas.Top="56" Height="23" Name="textBlock1" Text="用户名" />
<TextBlock Canvas.Left="40" Canvas.Top="102" Height="23" Name="textBlock2" Text="密码" />
<Button Canvas.Left="183" Canvas.Top="161" Content="取消" Height="23" Name="button2" Width="75" />
<TextBox Canvas.Left="138" Canvas.Top="56" Height="23" Name="textBox1" Width="120" />
<PasswordBox Canvas.Left="138" Canvas.Top="102" Height="23" Name="passwordBox1" Width="120" />
</Canvas>
</navigation:Page>

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:///markup-compatibility/2006"
mc:Ignorable="d"
xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
d:DesignWidth="800" d:DesignHeight="600"
Title="Chapter10 Page">
<StackPanel Width="800" Height="600" Orientation="Vertical">
<Canvas Width="800" Height="200" Background="White">
<Canvas.Resources>
<Storyboard x:Name="myStroryboard">
<DoubleAnimation Storyboard.TargetName="myTransform" Storyboard.TargetProperty="Angle"
From="0" To="360" Duration="0:0:5" RepeatBehavior="Forever"/>
</Storyboard>
</Canvas.Resources>
<Image Canvas.Left="50" Canvas.Top="50" Height="100" Name="p_w_picpath01" Stretch="Fill" Width="100" Source="p_w_picpath/15.jpg" MouseEnter="Image_MouseEnter" MouseLeave="Image_MouseLeave">
<Image.RenderTransform>
<RotateTransform x:Name="myTransform" Angle="15" CenterX="50" CenterY="50"></RotateTransform>
</Image.RenderTransform>
</Image>
<Image Canvas.Left="350" Canvas.Top="0" Height="100" Name="p_w_picpath02" Stretch="Fill" Width="100" Source="p_w_picpath/15.jpg">
</Image>
<Image Canvas.Left="350" Canvas.Top="0" Height="100" Name="p_w_picpath03" Stretch="Fill" Width="100" Source="p_w_picpath/15.jpg" Opacity="0.8">
<Image.RenderTransform>
<TransformGroup>
<ScaleTransform ScaleY="-0.75"></ScaleTransform>
<TranslateTransform Y="180" X="30"></TranslateTransform>
<SkewTransform AngleX="-15"></SkewTransform>
</TransformGroup>
</Image.RenderTransform>
<Image.OpacityMask>
<LinearGradientBrush StartPoint="0.5,0.0" EndPoint="0.5,1.0">
<GradientStop Offset="0.0" Color="#00000000"></GradientStop>
<GradientStop Offset="1.0" Color="#FF000000"></GradientStop>
</LinearGradientBrush>
</Image.OpacityMask>
</Image>
</Canvas>
<Canvas Width="800" Height="200">
<Image Canvas.Left="100" Canvas.Top="10" Height="100" Name="p_w_picpath31" Stretch="Fill" Width="200" Source="p_w_picpath/14.jpg" />
<Image Canvas.Left="100" Canvas.Top="10" Height="100" Name="p_w_picpath32" Stretch="Fill" Width="200" Source="p_w_picpath/14.jpg">
<Image.RenderTransform>
<RotateTransform Angle="15" CenterX="0" CenterY="0"></RotateTransform>
</Image.RenderTransform>
</Image>
<Image Canvas.Left="100" Canvas.Top="10" Height="100" Name="p_w_picpath33" Stretch="Fill" Width="200" Source="p_w_picpath/14.jpg">
<Image.RenderTransform>
<RotateTransform Angle="30" CenterX="50" CenterY="300"></RotateTransform>
</Image.RenderTransform>
</Image>
<Image Canvas.Left="100" Canvas.Top="10" Height="100" Name="p_w_picpath34" Stretch="Fill" Width="200" Source="p_w_picpath/14.jpg">
<Image.RenderTransform>
<RotateTransform Angle="45" CenterX="0" CenterY="50"></RotateTransform>
</Image.RenderTransform>
</Image>
</Canvas>
<Canvas Width="800" Height="200">
<Image Canvas.Left="100" Canvas.Top="10" Height="100" Name="p_w_picpath1" Stretch="Fill" Width="200" Source="p_w_picpath/14.jpg" />
<Image Canvas.Left="100" Canvas.Top="10" Height="100" Name="p_w_picpath2" Stretch="Fill" Width="200" Source="p_w_picpath/14.jpg">
<Image.RenderTransform>
<RotateTransform Angle="15"></RotateTransform>
</Image.RenderTransform>
</Image>
<Image Canvas.Left="100" Canvas.Top="10" Height="100" Name="p_w_picpath3" Stretch="Fill" Width="200" Source="p_w_picpath/14.jpg">
<Image.RenderTransform>
<RotateTransform Angle="30"></RotateTransform>
</Image.RenderTransform>
</Image>
<Image Canvas.Left="100" Canvas.Top="10" Height="100" Name="p_w_picpath4" Stretch="Fill" Width="200" Source="p_w_picpath/14.jpg">
<Image.RenderTransform>
<RotateTransform Angle="40"></RotateTransform>
</Image.RenderTransform>
</Image>
</Canvas>
</StackPanel>
</navigation:Page>





















