www.pudn.com > WPFIce-animation.rar > Window1.xaml, change:2010-12-31,size:747b


<Window  
    x:Class="WPF中的冰雪效果2.Window1" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:local="clr-namespace:WPF中的冰雪效果2" 
    Title="Window1" Height="300" Width="300" WindowStartupLocation="CenterScreen" Background="Transparent" 
    AllowsTransparency="True" WindowStyle="None"> 
    <Canvas Name="cann"> 
        <local:snowcanvas Width="200" Height="200" x:Name="mycanvas"> 
        </local:snowcanvas> 
        <Button Canvas.Top="220" Canvas.Left="0" Click="Button_Click_1">添加动画</Button> 
        <Button Canvas.Top="220" Canvas.Left="100" Click="Button_Click">关闭动画</Button> 
    </Canvas> 
</Window>