Guest User

Untitled

a guest
Jan 16th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. // These two below values/ratio would be calculated dynamically,
  2.  
  3. public string firstColValue = "3*";
  4. public string secondColValue = "7*";
  5.  
  6. <Frame CornerRadius="8" Grid.Row="0" HorizontalOptions="FillAndExpand" HeightRequest="8">
  7. <Grid HorizontalOptions="FillAndExpand">
  8. <Grid.ColumnDefinitions>
  9. <ColumnDefinition Width="{Binding firstColValue}">
  10. </ColumnDefinition>
  11. <ColumnDefinition Width="{Binding secondColValue}">
  12. </ColumnDefinition>
  13. </Grid.ColumnDefinitions>
  14. <Grid.RowDefinitions>
  15. <RowDefinition Height="8">
  16. </RowDefinition>
  17. </Grid.RowDefinitions>
  18.  
  19. <Label Grid.Row="0" Grid.Column="0" HeightRequest="8" HorizontalOptions="FillAndExpand" BackgroundColor="Lime"></Label>
  20. <Label Grid.Row="0" Grid.Column="1" HeightRequest="8" HorizontalOptions="FillAndExpand" BackgroundColor="Blue"></Label>
  21.  
  22. </Grid>
  23. </Frame>
Add Comment
Please, Sign In to add comment