zip's

while(true) { Write it down; Think about it; Refine it; Sleep(); }

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

随笔分类 -  XAML

摘要:更改坐标原点 通过 ScaleTransform 加上 TranslateTransform 来完成,下面的例子中是一个 1000 乘 1000 大小的 Canvas, 希望将其坐标原点移到中心,就是 500,500 处 <Canvas Height="1000" Width="1000"> <Canvas.Resources> <Style TargetType="{x:Type TextBlo... 阅读全文
posted @ 2011-06-08 11:04 zip's 阅读(1146) 评论(0) 推荐(0)

摘要:处理在不同DPI情况下GUI显示的问题,有2个方法:用 ViewBox 包一层运行时转换转换像素单位使用 MarkupExtensionCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->namespace Program{ public class pxExtension : MarkupExtension { private readonly double _len; public pxExtension(string len) { try 阅读全文
posted @ 2011-01-12 14:07 zip's 阅读(726) 评论(0) 推荐(0)