こんにちはみんなを動作していないXamarinの専門家のための非常に簡単な質問は、私が垂直中央整列stacklayoutコントロールしようとしていますし、それがモバイルデバイスをアンドロイド携帯で細かい作業が、Windowsで動作していません。添付画像を見て、私を助けてください詳細については私のコードは、私はWindowsの携帯電話のために画面の中央に位置を合わせだろうかXamarin Stacklayout VerticalOptions CenterAndExpandはおそらく
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="aa.Views.MainPage">
<ScrollView>
<StackLayout Orientation="Vertical" VerticalOptions="CenterAndExpand"
Padding="20" Spacing="10">
<Entry x:Name="enEmail" Placeholder="Email"></Entry>
<Entry x:Name="enPassword" IsPassword="True" Placeholder="Password"></Entry>
<Button Text="Login" Clicked="OnClicked_btnLogin" x:Name="btnLogin"></Button>
<Button Text="Register" Clicked="OnClicked_btnRegister" x:Name="btnRegister"></Button>
</StackLayout>
</ScrollView>
</ContentPage>
を下回っている
はこれです中央に配置されますあなたのページにあなたが持っている唯一のコード? –
問題@AtulChaudharyは、スクロールビューです。削除して、試してみてください。@ AtulChaudhary –
それが働いていたが、私は、テキストボックスをクリックしたときに私がscrillview –