SilverLight学习一

2016-08-20 10:32:45来源:http://soscnet.blog.51cto.com/4883857/838131作者:sosCnet人点击


SL学习(一)


mso-hansi-font-family:"Times New Roman"">开发环境:VS2010+SL3.0+XP+IE8


mso-hansi-font-family:"Times New Roman"">建立我的第一个SL"Times New Roman"">小程序HelloWorld


"Times New Roman";mso-hansi-font-family:"Times New Roman"">程序启动设置:在App.xaml.cs"Times New Roman";mso-hansi-font-family:"Times New Roman"">中


private void Application_Startup(object sender, StartupEventArgs e)


{


this.RootVisual = new MainPage();


}


"Times New Roman";mso-hansi-font-family:"Times New Roman"">在面板上添加了一个Canvasmso-hansi-font-family:"Times New Roman"">将原有的Grid"Times New Roman"">去掉了


<Canvas Width="500" Height="300" x:Name="myLayOut">


<Button Canvas.Left="60" Canvas.Top="34" Content="mso-hansi-font-family:"Times New Roman"">请点击我"


Height="23" x:Name="button1" Width="75" Click="button1_Click" >


</Button>


</Canvas>


最新文章

123

最新摄影

微信扫一扫

第七城市微信公众平台