Hi,
I have a weird problem and i do not know if infragistics is the one to ask but i give it a shot.
My code works fine displaying tabs and slideTabView method override below is called to readjust positioning of my tabs just fine.
[Export("slideTabView:tab:layoutForBounds:")] public void Tab(IGSlideTabView slideTabView, IGSlideTabItem tab, RectangleF bounds) {
.....
......
}
but if i remove navigationbar before I come to view then it never called initially (if I rotate the screen all comes back)
public override void ViewWillAppear(bool animated)
{ base.ViewWillAppear(animated); this.NavigationController.NavigationBarHidden = true;
Any ideas?
Thank you
Mark
Hi Mark,
After some investigating I believe the issue occurs within iOS controller and view internals. One way to get the IGSlideTabView layout for bounds event to fire when using a navigation controller is to set the following property to false at the beginning of your ViewDidLoad event.
this.NavigationController.NavigationBar.Translucent = false;
Setting this property forces the IGSlideTabView to update it's bounds to account for the navigation bar and will fire off the IGSlideTabView layout for bounds event. Then if you hide the navigation bar in ViewWillAppear, the event will fire again.
Thank you Torrey, I built a work around but now definitely will try your suggested solution.
sorry, did not make any difference in my case.
can you share your test sample please
thank you
Attached you'll find the test sample I created for my previous reply.
Hello,
I am just checking about the progress of this issue. Did Torrey's suggestion helped you solve your issue? Let us know if you need any additional assistance.
Thank you for using Infragistics Components.