WEB开发网
开发学院软件开发VC VS2010 Beta1下Silverlight3试用手记 阅读

VS2010 Beta1下Silverlight3试用手记

 2009-05-22 20:05:58 来源:WEB开发网   
核心提示: 如图:有三个滑动条和一个面板,通过滑动滑块,VS2010 Beta1下Silverlight3试用手记(4),面板会进行对应x,y,z轴的翻转:XAML代码很简单:XAML1<UserControl2 xmlns="http://schemas.microsoft.com/

VS2010 Beta1下Silverlight3试用手记

如图:有三个滑动条和一个面板,通过滑动滑块,面板会进行对应x,y,z轴的翻转:

VS2010 Beta1下Silverlight3试用手记

XAML代码很简单:

XAML

 1<UserControl
 2    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 3    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 4    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" x:Class="SilverlightApplication2.MainPage"
 5    Width="600" Height="500" mc:Ignorable="d">
 6    <Grid x:Name="LayoutRoot" Background="White">
 7        <Canvas x:Name="canvasBody" Margin="261,153,50,79">
 8            <Canvas.Projection>
 9                <PlaneProjection    RotationX="0"
10                                    RotationY="0"
11                                    RotationZ="0"
12                                    />
13            </Canvas.Projection>
14             <Canvas.Background>
15                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
16                    <GradientStop Color="#FF000000"/>
17                    <GradientStop Color="#FFFFFFFF" Offset="1"/>
18                </LinearGradientBrush>
19            </Canvas.Background>
20        </Canvas>
21        <Slider x:Name="slX" Height="20" Margin="45,17,255,0" VerticalAlignment="Top" Width="300" d:LayoutOverrides="Height" Minimum="0" Maximum="90"/>
22        <Slider x:Name="slY" Width="300" Height="20" VerticalAlignment="Top" d:LayoutOverrides="Height" Margin="45,53,255,0" Minimum="0" Maximum="90"/>
23        <Slider x:Name="slZ" Width="300" Height="20" d:LayoutOverrides="Height" VerticalAlignment="Top" Margin="45,93,255,0" Minimum="0" Maximum="90"/>
24        <TextBlock x:Name="tbX" Height="20" HorizontalAlignment="Right" Margin="0,17,160,0" VerticalAlignment="Top" Width="78" Text="0" TextWrapping="Wrap"/>
25        <TextBlock x:Name="tbY" Height="20" HorizontalAlignment="Right" Margin="0,54,160,0" VerticalAlignment="Top" Width="78" Text="0" TextWrapping="Wrap"/>
26        <TextBlock x:Name="tbZ" Height="20" HorizontalAlignment="Right" Margin="0,94,160,0" VerticalAlignment="Top" Width="78" Text="0" TextWrapping="Wrap"/>
27    </Grid>
28</UserControl> 

上一页  1 2 3 4 5  下一页

Tags:VS Silverlight

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接