{"id":718,"date":"2018-03-04T20:11:46","date_gmt":"2018-03-04T20:11:46","guid":{"rendered":"http:\/\/sezeromer.com\/?p=718"},"modified":"2023-02-26T13:16:33","modified_gmt":"2023-02-26T10:16:33","slug":"xamarin-tool-bar-item-olusturma","status":"publish","type":"post","link":"https:\/\/sezeromer.com\/en\/xamarin-tool-bar-item-olusturma\/","title":{"rendered":"Xamarin Tool Bar Item"},"content":{"rendered":"<p>You may want to create items on some of your pages. You can add it to the settings item, the search bar, or whatever you need. These items that work very useful on your page can take advantage of removing the buttons that take up space. For example, we can save pages by putting them at the top of the page instead of putting a settings button, edit button, insertion button or a toolbar.<\/p>\n<p>Using <strong>Xamarin&#8217;s<\/strong> tool bar item is very simple. First, you open the xaml section of your page. My page creation <strong>Content<\/strong> <strong>Page<\/strong> can be your master detail page or tabbed page. You can use the page structure without notice. We say that we will assign an item to this content page because it is a content page.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-725\" src=\"http:\/\/sezeromer.com\/wp-content\/uploads\/2018\/01\/toolbaritem-1024x157.png\" sizes=\"(max-width: 1024px) 100vw, 1024px\" srcset=\"http:\/\/sezeromer.com\/wp-content\/uploads\/2018\/01\/toolbaritem-1024x157.png 1024w, http:\/\/sezeromer.com\/wp-content\/uploads\/2018\/01\/toolbaritem-300x46.png 300w, http:\/\/sezeromer.com\/wp-content\/uploads\/2018\/01\/toolbaritem-768x118.png 768w, http:\/\/sezeromer.com\/wp-content\/uploads\/2018\/01\/toolbaritem.png 1086w\" alt=\"\" width=\"1024\" height=\"157\" \/><\/p>\n<p>First we create a toolbar item. We can name this tool bar itema. After giving the name, I want to give a picture. That&#8217;s why I wrote it on the iconic picture. If you do not want to give a picture, you can leave the icon blank. It only appears as text. The Order option is a feature that you can decide whether your item will appear in options within 3 points or directly in the bar. If we do the primary, we will go directly to the bar and if we make secondary we will be placed under 3 points item. The primary feature is the priority feature. If you want to add another tool bar item, you decide with which order it will stop with the primary feature. The clicked feature is the part we will perform when the tool bar item is clicked.<\/p>\n<div class=\"wp-block-codemirror-blocks code-block \">\n<pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;swift&quot;,&quot;mime&quot;:&quot;text\/x-swift&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;lineNumbers&quot;:true,&quot;lineWrapping&quot;:false,&quot;styleActiveLine&quot;:true,&quot;readOnly&quot;:true,&quot;align&quot;:&quot;&quot;}\">&lt;ContentPage.ToolbarItems&gt;\r\n        &lt;ToolbarItem Name=\"Profili D\u00fczenle\"\r\n                     Icon=\"edit.png\" \r\n                     Priority=\"0\" \r\n                     Order=\"Primary\"\r\n                     Text=\"Profili D\u00fczenle\"\r\n                     Clicked=\"buttonTakimDuzenle_Clicked\"\/&gt;\r\n    &lt;\/ContentPage.ToolbarItems&gt;<\/pre>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-726\" src=\"http:\/\/sezeromer.com\/wp-content\/uploads\/2018\/01\/toolbaritem-2.jpg\" sizes=\"(max-width: 500px) 100vw, 500px\" srcset=\"http:\/\/sezeromer.com\/wp-content\/uploads\/2018\/01\/toolbaritem-2.jpg 500w, http:\/\/sezeromer.com\/wp-content\/uploads\/2018\/01\/toolbaritem-2-300x142.jpg 300w\" alt=\"\" width=\"500\" height=\"237\" \/><\/p>\n<p>In this way you may have used a tool bar item. You can ask your questions by email or comment.<\/p>","protected":false},"excerpt":{"rendered":"<p>You may want to create items on some of your pages. You can add it to the settings item, the search bar, or whatever you need. These items that work very useful on your page can take advantage of removing the buttons that take up space. For example, we can save pages by putting them [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":245,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[289,288,3],"tags":[114,115,266,267,269,265,268,109,22,119],"class_list":["post-718","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-android","category-ios","category-xamarin-ile-yapilmis-projeler","tag-android","tag-ios","tag-primary","tag-secondary","tag-tool-bar","tag-tool-bar-item","tag-toolbar","tag-visual-studio","tag-xamarin","tag-xamarin-forms"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/sezeromer.com\/en\/wp-json\/wp\/v2\/posts\/718"}],"collection":[{"href":"https:\/\/sezeromer.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sezeromer.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sezeromer.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sezeromer.com\/en\/wp-json\/wp\/v2\/comments?post=718"}],"version-history":[{"count":4,"href":"https:\/\/sezeromer.com\/en\/wp-json\/wp\/v2\/posts\/718\/revisions"}],"predecessor-version":[{"id":2576,"href":"https:\/\/sezeromer.com\/en\/wp-json\/wp\/v2\/posts\/718\/revisions\/2576"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sezeromer.com\/en\/wp-json\/wp\/v2\/media\/245"}],"wp:attachment":[{"href":"https:\/\/sezeromer.com\/en\/wp-json\/wp\/v2\/media?parent=718"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sezeromer.com\/en\/wp-json\/wp\/v2\/categories?post=718"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sezeromer.com\/en\/wp-json\/wp\/v2\/tags?post=718"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}