(Xamarin)TabbedPage填充没有达到预期的效果(顶部没有填充)

时间:2018-05-15 05:07:26

标签: xaml xamarin padding tabbedpage

在我的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,则结果为:

The Left being against the screen

如果top = 10,则left,right和bottom = 10,如果bottom = 0,则left,top和right = 10,结果为:

The Bottom being against the screen

如果right = 0,左边,顶部和底部= 10,则会导致:顶部和右侧靠着屏幕,左侧有10个,底部有20个

The Top and Right side being against the screen, with left having 10 and the bottom having 20

为什么当我尝试将顶部变量(b)设置为不等于所有其他3的任何东西时,会导致意外的影响? (b值变为底部而不是顶部,或者如果我执行c,则顶部和右部不能正常工作)

0 个答案:

没有答案
相关问题