在我的 TabbedPage 中
<TabbedPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:JobMotivator"
x:Class="PlaceHolder.MainTabbedPage"
Padding="left,top,right,bottom">
我想在除顶部之外的所有侧面进行填充,以便选择的内容页面与选项卡齐平。无论我执行哪个命令,都会产生意想不到的效果。
如果 left = 0,top、right 和 bottom = 10,则结果:
如果top = 10,left、right和bottom = 10,如果bottom = 0,left、top和right = 10,则结果:
如果right = 0,left、top和bottom = 10,结果是:Top和Right边靠着屏幕,左边有10,底部有20
为什么,当我尝试将顶部变量 (b) 设置为不等于所有其他 3 的任何值时,会导致意想不到的效果?(b 值变为底部而不是顶部,或者如果我执行 c,顶部和右侧无法正常工作)