WPF布局的显示属性问题. [英] Display properties issues with WPF Layout.

查看:84
本文介绍了WPF布局的显示属性问题.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 

1)我正在使用Windows XP操作系统.

1) I am using Windows XP operating system.

2)我已经在WPF中使用Visual Studio 2008在 96 DPI中创建了一个按钮,其显示属性为字体大小 (正常)

2) I have created a button in WPF using Visual studio 2008.in 96 DPI , with display properties font size (Normal)

3)工作正常的应用程序的输出结果.

3) The out put of the application working Fine.but

4)当我通过单击(在桌面上单击鼠标右键->属性->显示属性->外观"选项卡字体大小为特大"来更改字体大小时,我的应用程序会出现问题.文本变大大小不适合我的按钮.

4) When i change the Font Size by clicking (Right click in desktop-->properties-->Display properties-->Appearance Tab-Font Size to Extra Large my application leads to problem. Text become big in size  and not fits in to my button.

请帮助我克服这一点.

此致

Algates.

推荐答案

在应用程序中,您可以显式调整按钮文本的大小...这将使Windows字体大小不会影响您的应用程序(至少在理论上……大声笑).您也可以对TextBlock控件执行此操作,然后将其应用到您的应用程序中 没有键的资源...这将使您的大多数控件保持相同的字体大小...取决于您的实现.

In your application you can explicitly size the text of your button...this will keep the windows font sizing from affecting your application (at least in theory...lol).  You can alternatively do this for the TextBlock control and apply it in your application resources without a key...this will keep the majority of your controls the same font size...depends on your implementation.

 

希望有帮助,

Aj


这篇关于WPF布局的显示属性问题.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆