Learning WPF / March 15,2015 / Sunday
来源:互联网 发布:淘宝联盟交流群 编辑:程序博客网 时间:2024/06/06 16:26
公司那个软件框架界面实在是美观的不明显,几个月之前就想自己写个框架用了,由于各种原因拖到现在。
计划是对FirstFloor的ModernUI进行改写—不会整个抄下来,而是需要什么就从里面找什么。
ModernUI我在大四的时候就稍微看了下,但都过了差不多,别说WPF,就是较为熟悉的C#,因为许久不用,感觉都忘得差不多了。我想说的是笔记很重要。。
1.
mui:ModernWindow x:Class="FirstFloor.ModernUI.App.MainWindow"
ModernWindow不是已经有implementation class了吗,为何还要个x:Class呢?原来,mui:ModernWindow在xaml文件中代表的就是一个ModernWindow类的对象,x:Class指向的类是ModernWindow的一个子类,这样的设计估计是为了让我们避免去修改父类,使程序编写更加自由。
2.关于可空类型
3.看来DPIAwareWindow.cs,下面这句看不懂:
this.dpiInfo = new DpiInformation(96D * matrix.M11, 96D * matrix.M22);
查了下资料,原来是计算DPI,所谓的设备无关单位可能不准,详情看这里。
快23:00了,今天先这样。
0 0
- Learning WPF / March 15,2015 / Sunday
- March'English Learning
- November 15th Sunday
- sunday
- Sunday
- CodeChef March Challenge 2015
- Before learning WPF
- March 15th Monday 2010
- Android ADT 23.0.6 (March 2015)
- Useful WPF resources and learning materials
- Yandex.Algorithm Online Round 3 Sunday, June 15, 2014
- gloomy sunday
- Sunday afternoon
- Sunday算法
- Sunday算法
- Sunday算法
- Sunday算法
- SUNDAY 算法
- enterprise architect (EA) 源码生成UML类图,帮助理解项目工程
- 计算1~100中9出现的次数
- C++中extern “C”含义深层探索
- UINavigationbar/UINavigationItem/UITabBar/UITabButton/UITabBarItem粑粑粑粑~
- NYOJ 271 The 3n + 1 problem
- Learning WPF / March 15,2015 / Sunday
- 3.2 视图和模型变换
- Docker学习笔记 — Compose简介、安装与简单使用
- Qt 中Warning: Z-order assignment: " is not a valid widget
- C++编程学习52个经典网站 强力推荐
- zoj 2109 FatMouse' Trade 贪心
- 集群中几种session同步解决方案的比较
- # 工程经济学第4
- (2.2.3)Java之美[从菜鸟到高手演变]之设计模式二:结构型模式