ios - How can I add a tabbed menu to a carousel view in Xamarin forms? -


i trying implement interface there 5 pages can swiped , dragged between can change page tapping on tabbed bar @ bottom.

i writing custom renderer carouselpage can not add tabbed bar @ bottom because ios uitabbar requires , array of uiviewcontrollers switch between , have access pages.

this have tried far:

[assembly: exportrenderer (typeof (extendedcarouselpage), typeof (extendedcarouselpagerenderer))]  namespace customrenderer.ios {     public class extendedcarouselpagerenderer : carouselpagerenderer     {         protected uitabbar tabbar;          protected override void onelementchanged (visualelementchangedeventargs e)         {                 base.onelementchanged (e);                  tabbar = new uitabbar (new cgrect (0, this.view.frame.height * 0.9, this.view.frame.width, this.view.frame.height * 0.1));                 tabbar.items = new uitabbaritem[]{                         new uitabbaritem("hello",uiimage.fromfile("homeicon.png"),uiimage.fromfile("homeiconblue.png")),                         new uitabbaritem("world", uiimage.fromfile("homeicon.png"),uiimage.fromfile("homeiconblue.png"))                 };                  tabbar.bounds = new cgrect (0, this.view.frame.height * 0.9, this.view.frame.width, this.view.frame.height * 0.1);                 tabbar.frame = new cgrect (0, this.view.frame.height * 0.9, this.view.frame.width, this.view.frame.height * 0.1);                  this.nativeview.addsubview(tabbar);         }     } } 

the problem can't find lot of guides on writing more complex custom renderers. there plenty xamarin ios lot of code not apply custom renderer.


Comments

Popular posts from this blog

javascript - How to process users in one specific order using map o each function? -

java - Two interface have same method name with different return type -

javascript - Linking from page A to a specific iframe on page B -