上效果图:
页面代码:
<GrID x:name="LayoutRoot" Background="White"> <GrID> <GrID.RowDeFinitions> <RowDeFinition></RowDeFinition> <RowDeFinition></RowDeFinition> </GrID.RowDeFinitions> <border GrID.Row="1" Background="AliceBlue"> <GrID WIDth="140" Height="120"> <GrID.RowDeFinitions> <RowDeFinition></RowDeFinition> <RowDeFinition></RowDeFinition> <RowDeFinition></RowDeFinition> <RowDeFinition></RowDeFinition> </GrID.RowDeFinitions> <Rectangle GrID.Row="0" Fill="#FFE51D1D" > </Rectangle> <TextBlock GrID.Row="0" HorizontalAlignment="Center" margin="0,8,0">III级报警</TextBlock> <Rectangle Fill="Orange" GrID.Row="1"> </Rectangle> <TextBlock GrID.Row="1" HorizontalAlignment="Center" margin="0,0">II级报警</TextBlock> <Rectangle Fill="Yellow" GrID.Row="2"></Rectangle> <TextBlock GrID.Row="2" HorizontalAlignment="Center" margin="0,0">I级报警</TextBlock> <Rectangle Fill="Green" GrID.Row="3"></Rectangle> <TextBlock GrID.Row="3" HorizontalAlignment="Center" margin="0,0">安全区域</TextBlock> </GrID> </border> </GrID> </GrID>
总结以上是内存溢出为你收集整理的silverlight 矩形报警颜色框全部内容,希望文章能够帮你解决silverlight 矩形报警颜色框所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)