无论方向如何,如何为我的签名板放置恒定的高度?

how to put constant height for my signature pad irrespective of orientation?

在 xamarin 应用程序中,我创建了一个签名板,并且我保留了像

这样的边距

我想保持签名区域的永久高度,无论设备和方向如何,

我不是 xamarin 开发人员,我也不知道 xaml,我仍然尝试了 Margin="200,200,200,200" ,但是当我改变方向时它表现得很奇怪。

in ipad 在横向模式下该区域根本不可见。

<?xml version="1.0" encoding="utf-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:signaturePad="clr-namespace:Acr.XamForms.SignaturePad;assembly=Acr.XamForms.SignaturePad"
             x:Class="watebook.Clients.Mobile.Views.CaptureSignature"
             BackgroundColor="{StaticResource PageBackgroundColor}">

    <AbsoluteLayout HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand">
        <StackLayout AbsoluteLayout.LayoutFlags="All" AbsoluteLayout.LayoutBounds="0,0,1,1">
            <ContentView Style="{StaticResource PageHeaderBodySeparator}" />
            <signaturePad:SignaturePadView
            Margin="200,200,200,200"
            VerticalOptions="FillAndExpand"
            HorizontalOptions="FillAndExpand"
            x:Name="padView"
            BackgroundColor="{StaticResource SignaturePadBackgroundColor}"
            CaptionText="Please sign here"
            CaptionTextColor="{StaticResource SignaturePadCaptionTextColor}"
            PromptText="."
            SignatureLineColor="{StaticResource SignaturePadSignatureLineColor}"
            StrokeColor="{StaticResource SignaturePadSignatureStrokeColor}"
            StrokeWidth="2"
            ClearText="" />
            <Button Text="SAVE SIGNATURE" Clicked="Button_OnClicked" BackgroundColor="#ffd300" TextColor="Black" x:Name="SaveButton" BorderColor="Black" Margin="0,10,0,300" />
        </StackLayout>
        <ContentView Style="{StaticResource ProcessIndicatorContentViewStyle}" x:Name="ActivityCameraIndicators" IsVisible="False" AbsoluteLayout.LayoutFlags="All" AbsoluteLayout.LayoutBounds="0,0,1,1">
            <Label Style="{x:StaticResource ProcessIndicatorLabelStyle}" Text="Processing" x:Name="ActivityIndicatorLable" />
        </ContentView>
    </AbsoluteLayout>
</ContentPage>

如何为我的签名板保持永久高度?

使用HeightRequest

<signaturePad:SignaturePadView HeightRequest="200" ... />