Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Using XF on iOS, does anybody know why I might get a duplicate secondary toolbar?

$
0
0

Hello,

I use the follow piece of code to build the toolbar for pages in my app, including both primary and secondary items. On Windows Phone and Android this works as expected. However, on iOS, I sometimes get a duplicated row of secondary toolbar items, one above the other.

public void AddOrUpdateToolbarOnPage(Page page)
{
page.ToolbarItems.Clear();
foreach (KeyValuePair<int, ToolbarItem> kvp in _toolbarItemsByPosition)
{
page.ToolbarItems.Add(kvp.Value);
}
}

Has anybody else encountered this, or have any idea why this might be happening?

Many thanks,

John H.


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>