Guest User

Untitled

a guest
Feb 13th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. this.Master = new Master();
  2. this.Detail = new NavigationPage(new Detail());
  3.  
  4. <?xml version="1.0" encoding="utf-8" ?>
  5. <TabbedPage xmlns="http://xamarin.com/schemas/2014/forms"
  6. xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  7. xmlns:views="clr-namespace:Operacional.Views"
  8. x:Class="Operacional.Views.MainPage">
  9.  
  10.  
  11. <TabbedPage.Children>
  12. <NavigationPage Title="Indicadores">
  13. <NavigationPage.Icon>
  14. <OnPlatform x:TypeArguments="FileImageSource">
  15. <On Platform="iOS" Value="tab_about.png"/>
  16. </OnPlatform>
  17. </NavigationPage.Icon>
  18. <x:Arguments>
  19. <views:Indicadores />
  20. </x:Arguments>
  21. </NavigationPage>
  22. <NavigationPage Title="Paineis">
  23. <NavigationPage.Icon>
  24. <OnPlatform x:TypeArguments="FileImageSource">
  25. <On Platform="iOS" Value="tab_feed.png"/>
  26. </OnPlatform>
  27. </NavigationPage.Icon>
  28. <x:Arguments>
  29. <views:PaineisPage />
  30. </x:Arguments>
  31. </NavigationPage>
  32. </TabbedPage.Children>
  33. </TabbedPage>
  34.  
  35. [XamlCompilation(XamlCompilationOptions.Compile)]
  36. public partial class MainPage : TabbedPage
  37. {
  38. public MainPage ()
  39. {
  40. InitializeComponent ();
  41.  
  42. NavigationPage.SetHasNavigationBar(this, true);
  43.  
  44. //this.Master = new Master();
  45.  
  46. // NavigationPage.BarBackgroundColorProperty. = Color.Gray;
  47. }
  48. }
Add Comment
Please, Sign In to add comment