开发者

Resizing a button with higher values of Height and Width is less smooth than with lower values in WPF

I have a button which Max and Min height X width are 1024X1360 and 72X95 pixels. I am resizing this button by handling DragDelta events of Thumbs present in button's Template. The problem is the updation of height and width at lower levels, i.e upto 210X280, gives out a smooth operation which is not the case with greater sizes. Anybody开发者_开发知识库 out here has faced the issue? Any suggestion to improve the user experience in this situation.


The easiest fix here is to make the contents of your button less complex. In general, the more stuff there is to draw inside of it (i.e. larger size) the longer it is going to take to draw it. This can become even more problematic when you consider that hardware will play an (unpredictable) role in the performance as well.

So a couple of easy options: Mix and match for best results.
1. Make your button less complex.
2. Limit its maximum size. (To something smaller)
3. Accept the choppiness.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜