2012-03-02 79 views

回答

6

该空间被用于增加Button的触摸区域。

要删除它,请在Expression Blend点击Template - Create From Copy。比去xaml找到Padding="10,5,10,3"(类似的东西),并删除它。

+1

你介意告诉我为什么边界上还有一个或两个像素与没有边框的'TextBlock'相比? – 2012-03-02 15:42:45

+0

删除您在此处看到的所有边距。例如,“边框”的厚度等 – Ku6opr 2012-03-02 16:04:27

2

您需要设置保证金= “ - 10,-10,-10,-10”,以消除WP

0

您可以使用Application.Current.Resources [ “PhoneTouchTargetOverhang”],而不是保留的额外空间10在上面的解决方案中。