zoukankan
html css js c++ java
再论WPF中的UseLayoutRounding和SnapsToDevicePixels
最近在调试项目中的UI时发现几个诡异问题:
1.Grid容器里的GridSplitter设置粗细一样, 但截屏放大后发现线条不一样粗并且明暗不一致,导致打印出来有问题。
2.自定义控件的边缘在某些窗体中显示模糊。
导致以上问题的原因是:1)UserLayoutRounding为False,导致控件布局相对屏幕若不是整数则不会四舍五入,导致边缘模糊。2)
SnapsToDevicePixels默认为false, 为true可以让元素像素级对齐。
具体请看MSDN:
http://msdn.microsoft.com/zh-cn/library/system.windows.uielement.uselayoutrounding(v=vs.95).aspx
http://msdn.microsoft.com/zh-cn/library/vstudio/system.windows.uielement.snapstodevicepixels.aspx
查看全文
相关阅读:
升讯威周报与工时统计系统 V3
浅谈互联网时代的一万小时定律:方向与格局更重要
GitHub开源:SQLite 增强组件 Sheng.SQLite.Plus
GitHub开源:升讯威 SQLite 增强组件 Sheng.SQLite.Plus
centos7 配置IPV6
Vertica节点故障后的恢复经过
windows下杀掉指定端口的应用
解决QT Fault tolerant heap shim问题
vertica生成查询计划失败:Request size too big
IDEA配置aliyun的maven源
原文地址:https://www.cnblogs.com/muzizongheng/p/3408161.html
最新文章
ios sizeToFit & boundingRectWithSize
ios cocoapods 多个master 问题解决方法
iOS tableView 去除最后一行 分割线separator
iOS tableView 自定义sepatator
换到GitHub 博客了
github hexo配置踩过的坑
CSRF之POST
PHP RFI 的小tip
jquery.qrcode笔记
测试LFI WITH PHPINO过程中的一些记录
热门文章
Dream权限追踪系统<=2.0.1 重安装漏洞
Java 使用blob对H5视频播放进行加密
before和after的用法
招聘高级.Net工程师
.net core 和 WPF 开发升讯威在线客服与营销系统:背景和产品介绍
升讯威在线客服与营销系统:与QQ、微信的区别和优势
.net core 和 WPF 开发升讯威在线客服与营销系统:(插曲)一次端口攻击行为的分析与应对
.net core 和 WPF 开发升讯威在线客服与营销系统:系统总体架构
对于公司,也是我对软件行业,软件项目的五想法
升讯威自来水公司电子开票系统(对接金税)
Copyright © 2011-2022 走看看