daily pastebin goal
15%
SHARE
TWEET

Untitled

a guest Feb 22nd, 2019 43 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using UIKit;
  2. using Xamarin.Forms.Platform.iOS;
  3.  
  4. using Xamarin.Forms;
  5. using Previewer.iOS.Customs;
  6. using Previewer.Views;
  7.  
  8. [assembly: ExportRenderer(typeof(CustomTabbedPageRenderer), typeof(HomeTabbedPage))];
  9. namespace Previewer.iOS.Customs
  10. {
  11.     public class CustomTabbedPageRenderer : TabbedRenderer
  12.     {
  13.         public CustomTabbedPageRenderer()
  14.         {
  15.         }
  16.  
  17.         protected override void OnElementChanged(VisualElementChangedEventArgs e)
  18.         {
  19.             base.OnElementChanged(e);
  20.  
  21.             if (TabBar == null)
  22.                 return;
  23.  
  24.  
  25.             TabBar.TintColor = UIColor.FromHSB(165, 141, 205);
  26.             TabBar.UnselectedItemTintColor = UIColor.FromHSB(0, 0, 165);
  27.         }
  28.  
  29.     }
  30. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top