按照我博客里入门1中所述,建四个文件SampleHTMLPage.HTML,Silverlight.Js,myxaml.xaml,createSilverlight.Js,然后讲以下代码代码1粘贴到myxaml.xaml(覆盖原代码),双击SampleHTMLPage.HTML,
代码1:
==============================================================
<Canvas xmlns="http://schemas.microsoft.com/client/2007"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Background="Red" WIDth="300" Height="200" >
<Canvas Canvas.left="30" Canvas.top="35">
<polygon Canvas.left="50" Canvas.top="30" stroke="Red" Fill="Yellow"
Points="0,30 30,30 40,0 50,30 80,30 55,50 65,80 40,60 15,80 25,50" >
<polygon.Rendertransform>
<Scaletransform ScaleX="0.21" ScaleY="0.21"/>
</polygon.Rendertransform>
</polygon>
</Canvas>
<Canvas Canvas.left="30" Canvas.top="30">
<polygon Canvas.left="60" Canvas.top="15" stroke="Red" Fill="Yellow"
Points="0,50" >
<polygon.Rendertransform>
<Scaletransform ScaleX="0.21" ScaleY="0.21"/>
</polygon.Rendertransform>
</polygon>
</Canvas>
<Canvas Canvas.left="30" Canvas.top="20">
<polygon Canvas.left="60" Canvas.top="5" stroke="Red" Fill="Yellow"
Points="0,50" >
<polygon.Rendertransform>
<Scaletransform ScaleX="0.21" ScaleY="0.21"/>
</polygon.Rendertransform>
</polygon>
</Canvas>
<Canvas Canvas.left="30" Canvas.top="0">
<polygon Canvas.left="50" Canvas.top="5" stroke="Red" Fill="Yellow"
Points="0,50" >
<polygon.Rendertransform>
<Scaletransform ScaleX="0.21" ScaleY="0.21"/>
</polygon.Rendertransform>
</polygon>
</Canvas>
<Canvas Canvas.left="5" Canvas.top="0">
<polygon Canvas.left="20" Canvas.top="20" stroke="Red" Fill="Yellow"
Points="0,50" >
<polygon.Rendertransform>
<Scaletransform ScaleX="0.5" ScaleY="0.5"/>
</polygon.Rendertransform>
</polygon>
</Canvas>
</Canvas>
======================================================================
看到了五星红旗吧,不过这个五星红旗不够标准,我有时间会refine一下的,当然有朋友帮助我一下refine更好:)
锐意进取 大胆创新 蒙哥马利 朱
@H_502_69@ 总结以上是内存溢出为你收集整理的应用1-用Silverlight做五星红旗全部内容,希望文章能够帮你解决应用1-用Silverlight做五星红旗所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)