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
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.
His example works just as he said it should but in my code it is not. Setting bar hidden flag does not make any difference. i have a workaround for now but still planning on extracting the code to a smaller and simple test case to to resolve it. I will let you know soon about my findings
Thank you for the update.
Please make sure to update this thread with your findings. Also if you are able to isolate this issue from your code in a separate sample we will be glad to investigate this further for you.
I am looking forward to hearing from you.
Hello Mark,
I am just checking about the progress of this issue. Have you been able to isolate this issue? Let us know if you need my further assistance on this issue.