Guest User

Untitled

a guest
Sep 23rd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. <ContentPage.ToolbarItems>
  2. <ToolbarItem Icon="logo.png" Activated="RefButtonClicked"></ToolbarItem>
  3. </ContentPage.ToolbarItems>
  4.  
  5. var cancelItem = new ToolbarItem
  6. {
  7. Text = "Cancel",
  8. Icon = "tabalilogo.png",
  9. Order = ToolbarItemOrder.Secondary
  10. };
  11.  
  12. NavigationPage.SetHasNavigationBar(this, false);
  13.  
  14. <AbsoluteLayout x:Name="slToolbar" Grid.Row="0" >
  15. <Button x:Name="Cancel" BackgroundColor="#ADD8E6" Image="cancel.png" Command="{Binding CancelClick}" AbsoluteLayout.LayoutFlags="PositionProportional">
  16. <AbsoluteLayout.LayoutBounds>
  17. <OnPlatform x:TypeArguments="Rectangle" iOS="0, .5, 36, 36" Android="0, .5, 36, 36" WinPhone="0, .5, 50, 50" />
  18. </AbsoluteLayout.LayoutBounds>
  19. </Button>
  20.  
  21.  
  22. <StackLayout Orientation="Horizontal" AbsoluteLayout.LayoutFlags="PositionProportional">
  23. <AbsoluteLayout.LayoutBounds>
  24. <OnPlatform x:TypeArguments="Rectangle" iOS="1,.5,110,50" Android="1,.5,50,36" WinPhone="1,.5,110,50" />
  25. </AbsoluteLayout.LayoutBounds>
  26.  
  27.  
  28. <ContentView >
  29. <OnPlatform x:TypeArguments="View">
  30. <OnPlatform.iOS>
  31. <Button x:Name="NewIOS" BackgroundColor="#ADD8E6" Image="ic_add.png" Command="{Binding AddNew}" ></Button>
  32. </OnPlatform.iOS>
  33. <OnPlatform.WinPhone>
  34. <Button x:Name="NewWP" BackgroundColor="#ADD8E6" Command="{Binding AddNew}" Image="ic_add.png"/>
  35. </OnPlatform.WinPhone>
  36. </OnPlatform>
  37. </ContentView>
  38.  
  39.  
  40. <Button x:Name="btnSave" BackgroundColor="#ADD8E6" Image="check.png" Command="{Binding SaveClick}" HorizontalOptions="End" ></Button>
  41. </StackLayout>
  42. </AbsoluteLayout>
  43.  
  44. <ContentPage>
  45. <NavigationPage.TitleView>
  46. <StackLayout Orientation="Horizontal" VerticalOptions="Center" Spacing="10">
  47. <Image Source="iconXamagon.png">
  48. <Image.GestureRecognizers>
  49. <Image.TapGestureRecognizer
  50. Tapped="HandleTapped" />
  51. </Image.GestureRecognizers>
  52. </Image>
  53. <Label Text="3.2.0" FontSize="16" TextColor="Black" VerticalTextAlignment="Center" />
  54. </StackLayout>
  55. </NavigationPage.TitleView>
  56. ....
Add Comment
Please, Sign In to add comment