Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I want to set an Entry (input text in Android/iOS) over an image that plays an input box role. I tried this XAML code but I couldn't set its correct position over the first rectangle (image):
https://s4.uupload.ir/files/1_hepn.png[^]

What I have tried:

XML
<Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="300"/>
            <RowDefinition Height="300"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Image Source="Rectangle2.png" Grid.Row="0" Margin="2,10,0,0"/>
        <Image Source="Rectangle2.png" Grid.Row="1" Margin="2,-300,0,0" />
        <Grid Grid.Row="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="350"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="60"/>
            </Grid.RowDefinitions>
            <Entry  Grid.Row="0" Margin="25,0,0,0" Placeholder="User Name:" PlaceholderColor="DimGray" MaxLength="30"  ClearButtonVisibility="WhileEditing" TextColor="Black" />
        </Grid>

    </Grid>
Posted
Updated 17-Jun-21 8:47am
v4

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900