How to avoid duplicate insert of ToolbarItem in Xamarin.forms? <pre><code>protected override void OnAppearing(){ ToolbarItem itemStudy = new ToolbarItem { Name = "Study", Order = ToolbarItemOrder.Primary, Command = new Command (() =&gt; Navigation.PushAsync (studyPage)) }; if (ToolbarItems.Count &gt; 0) { ToolbarItems.RemoveAt(0); } ToolbarItems.Add (itemStudy); } </code></pre> <p>This is my Code snipped on Xamarin.forms for adding Toolbaritem. Anyhow I don't think this is an elegant way and looking for better solution. Can anyone help? Thanks.</p>