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

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

c++ - Using Gtest how return different values in ON_CALL? -

asp.net core mvc - How important is the global.json and src folder? -