{"id":7963,"date":"2020-03-09T14:51:15","date_gmt":"2020-03-09T14:51:15","guid":{"rendered":"http:\/\/putridparrot.com\/blog\/?p=7963"},"modified":"2020-03-09T14:51:15","modified_gmt":"2020-03-09T14:51:15","slug":"material-ui-in-xamarin-forms","status":"publish","type":"post","link":"https:\/\/putridparrot.com\/blog\/material-ui-in-xamarin-forms\/","title":{"rendered":"Material UI in Xamarin Forms"},"content":{"rendered":"<p>To get nice, material ui, visuals on your Android and\/or iOS application you can use the Xamarin.Forms.Visual.Material nuget package, see <a href=\"https:\/\/docs.microsoft.com\/en-us\/xamarin\/xamarin-forms\/user-interface\/visual\/material-visual\" rel=\"noopener noreferrer\" target=\"_blank\">Xamarin.Forms Material Visual<\/a> for a full explanation of using this package. I&#8217;m just going to summarise this information in this post for my own information.<\/p>\n<p>Add the nuget package Xamarin.Forms.Visual.Material you may need to upgrade your Xamarin Forms if it&#8217;s an older version.<\/p>\n<p>Init the FormsMaterial in the AppDelegate of the iOS project<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\nglobal::Xamarin.Forms.Forms.Init();\r\nglobal::Xamarin.Forms.FormsMaterial.Init();\r\n<\/pre>\n<p>and the same in the MainActivity<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\nglobal::Xamarin.Forms.Forms.Init(this, savedInstanceState);\r\nglobal::Xamarin.Forms.FormsMaterial.Init(this, savedInstanceState);\r\n<\/pre>\n<p>Finally set the Visual element of the ContentPage, i.e.<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\n&lt;ContentPage Visual=&quot;Material&quot;\r\n\/&gt;\r\n<\/pre>\n<p>That&#8217;s all there is to it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To get nice, material ui, visuals on your Android and\/or iOS application you can use the Xamarin.Forms.Visual.Material nuget package, see Xamarin.Forms Material Visual for a full explanation of using this package. I&#8217;m just going to summarise this information in this post for my own information. Add the nuget package Xamarin.Forms.Visual.Material you may need to upgrade [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[122],"tags":[],"class_list":["post-7963","post","type-post","status-publish","format-standard","hentry","category-xamarin-forms"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/7963","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/comments?post=7963"}],"version-history":[{"count":3,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/7963\/revisions"}],"predecessor-version":[{"id":7989,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/7963\/revisions\/7989"}],"wp:attachment":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/media?parent=7963"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/categories?post=7963"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/tags?post=7963"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}