Search This Blog

Tuesday, 11 February 2020

How to show Border on Editor Xamarin Form

<Frame BorderColor="LightGray" HasShadow="False" Padding="0">
     <Editor Placeholder="Enter Text Here" AutoSize="TextChanges" />
 </Frame>

Thursday, 6 February 2020

Xamarin Form Apply Margin Per PlatForm

<Grid>
  <Grid.Margin>
       <OnPlatform x:TypeArguments="Thickness">
       <On Platform="iOS" Value="0,0,0,20" />
       <On Platform="Android, WinPhone, Windows" Value="0,0,0,30" />
      </OnPlatform>
  </Grid.Margin>
  <Grid.RowDefinitions>
    <RowDefinition Height="2*" />
    <RowDefinition Height="*" />
    <RowDefinition Height="200" />
  </Grid.RowDefinitions>
  <Grid.ColumnDefinitions>
    <ColumnDefinition Width="Auto" />
    <ColumnDefinition Width="*" />
  </Grid.ColumnDefinitions>
</Grid>

Popular Posts