<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>XAML on InternetException</title><link>https://internetexception.com/tags/xaml/</link><description>Recent content in XAML on InternetException</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sun, 23 Feb 2020 13:49:33 +0100</lastBuildDate><atom:link href="https://internetexception.com/tags/xaml/index.xml" rel="self" type="application/rss+xml"/><item><title>Xamarin Android Services Pattern on GPS example</title><link>https://internetexception.com/2017/01/30/xamarin-android-services-pattern-on-gps-example/</link><pubDate>Mon, 30 Jan 2017 04:17:00 +0100</pubDate><guid>https://internetexception.com/2017/01/30/xamarin-android-services-pattern-on-gps-example/</guid><description>&lt;h3 id="introduction"&gt;Introduction&lt;/h3&gt;&#10;&lt;p&gt;In Xamarin if you want to use many Android native service/mechanism you have to implement it in Activity class. Or at least that is how Xamarin documentation wants you to do it.&lt;/p&gt;</description></item><item><title>Xamarin with TinyIoC</title><link>https://internetexception.com/2016/12/10/xamarin-with-tinyioc/</link><pubDate>Sat, 10 Dec 2016 09:48:00 +0100</pubDate><guid>https://internetexception.com/2016/12/10/xamarin-with-tinyioc/</guid><description>&lt;h3 id="introduction"&gt;Introduction&lt;/h3&gt;&#10;&lt;p&gt;This article is builds on topics and solutions introduces in &lt;a href="https://internetexception.com/2016/07/09/viewfactory-for-xamarin-application/"&gt;ViewFactory for Xamarin application&lt;/a&gt;&#10; and &lt;a href="https://internetexception.com/2016/04/24/xamarin-master-detail-page/"&gt;Xamarin Master-Detail Page&lt;/a&gt;&#10; articles. It shows method for easier navigation and use of services via IoC in Xamarin application. Knowledge from previous examples is not necessary, but makes this article bit easier to understand.&lt;/p&gt;</description></item><item><title>Genereting proxies during runtime using Reflection.Emit</title><link>https://internetexception.com/2016/10/07/genereting-proxies-during-runtime-using-reflection-emit/</link><pubDate>Fri, 07 Oct 2016 12:29:00 +0200</pubDate><guid>https://internetexception.com/2016/10/07/genereting-proxies-during-runtime-using-reflection-emit/</guid><description>&lt;p&gt;&lt;em&gt;Reflection.Emit&lt;/em&gt; is very powerful tool. It creates IL code and since C# is converted into IL too, we have the same functionality as in C# and even more. It is very powerful and at the same time very complicated. Because of that it is worth to discuss how and for what it should be used. One idea is to create dynamic code with automatic implementations of interfaces - proxy types.&lt;/p&gt;</description></item><item><title>ViewFactory for Xamarin application</title><link>https://internetexception.com/2016/07/09/viewfactory-for-xamarin-application/</link><pubDate>Sat, 09 Jul 2016 12:37:00 +0200</pubDate><guid>https://internetexception.com/2016/07/09/viewfactory-for-xamarin-application/</guid><description>&lt;h2 id="first-things-first---why"&gt;First things first - Why?&lt;/h2&gt;&#10;&lt;p&gt;First of all I do not like how creating of views and navigation works in Xamarin. There is much boilerplate needed to just navigate from one page to another. Typically like in &lt;a href="https://developer.xamarin.com/guides/xamarin-forms/getting-started/introduction-to-xamarin-forms/#Navigation" target="_blank" rel="noopener noreferrer"&gt;Xamarin documentation&lt;/a&gt;&#10; we have to obtain &lt;code&gt;INavigation&lt;/code&gt; interface instance, create instance of a new page, create instance of view model and all dependencies it requires. When you page do not require view model things are real easy and Xamarin sample is just enough.&lt;/p&gt;</description></item><item><title>Xamarin Master-Detail Page</title><link>https://internetexception.com/2016/04/24/xamarin-master-detail-page/</link><pubDate>Sun, 24 Apr 2016 07:41:00 +0200</pubDate><guid>https://internetexception.com/2016/04/24/xamarin-master-detail-page/</guid><description>&lt;p&gt;This article as previous ones (&lt;a href="https://internetexception.com/2016/04/22/xamarin-frame-and-style-with-padding/"&gt;Frame With Padding&lt;/a&gt;&#10;, &lt;a href="https://internetexception.com/2016/04/22/xamarin-frame-and-disappearing-outline/"&gt;Frame Outline Problem&lt;/a&gt;&#10;, &lt;a href="https://internetexception.com/2016/04/22/xamarin-frame-and-disappearing-outline/"&gt;Inheritance from Implicit Styles&lt;/a&gt;&#10;) also will be about Xamarin. This time we will inspect Master-Detail page control/mechanism. You can find official documentation for this control &lt;a href="https://developer.xamarin.com/guides/xamarin-forms/user-interface/navigation/master-detail-page/" target="_blank" rel="noopener noreferrer"&gt;here&lt;/a&gt;&#10;. Quick spoiler: I never used this in any production application. Why? I will explain. Whole article will be to explain why this is just not worth your time. In this and subsequent articles I will introduce much better solution.&lt;/p&gt;</description></item><item><title>Xamarin Style based on implicit Style</title><link>https://internetexception.com/2016/04/22/xamarin-style-based-on-implicit-style/</link><pubDate>Fri, 22 Apr 2016 23:17:00 +0200</pubDate><guid>https://internetexception.com/2016/04/22/xamarin-style-based-on-implicit-style/</guid><description>&lt;p&gt;Next article about bugs in Xamarin will touch topic of Styles. Styles for all of controls not only Frame (and if you wondering why Frame you should check first two articles about Xamarin &lt;a href="https://internetexception.com/2016/04/22/xamarin-frame-and-style-with-padding/" title="Xamarin Frame and Style with Padding"&gt;here&lt;/a&gt;&#10; and &lt;a href="https://internetexception.com/2016/04/22/xamarin-frame-and-disappearing-outline/" title="Xamarin Frame and disappearing Outline"&gt;here)&lt;/a&gt;&#10;. First of all if you are using Styles in Xamarin you probably know how to define implicit styles. If not here is a sample:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-xml" data-lang="xml"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;&amp;lt;Application.Resources&amp;gt;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;ResourceDictionary&amp;gt;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;Style&lt;/span&gt; &lt;span class="na"&gt;TargetType=&lt;/span&gt;&lt;span class="s"&gt;&amp;#34;Label&amp;#34;&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;Setter&lt;/span&gt; &lt;span class="na"&gt;Property=&lt;/span&gt;&lt;span class="s"&gt;&amp;#34;FontSize&amp;#34;&lt;/span&gt; &lt;span class="na"&gt;Value=&lt;/span&gt;&lt;span class="s"&gt;&amp;#34;45&amp;#34;&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;/Style&amp;gt;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nt"&gt;&amp;lt;/ResourceDictionary&amp;gt;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;&amp;lt;/Application.Resources&amp;gt;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description></item><item><title>Xamarin Frame and disappearing Outline</title><link>https://internetexception.com/2016/04/22/xamarin-frame-and-disappearing-outline/</link><pubDate>Fri, 22 Apr 2016 13:00:00 +0200</pubDate><guid>https://internetexception.com/2016/04/22/xamarin-frame-and-disappearing-outline/</guid><description>&lt;p&gt;This is another article in mini series of Xamarin bugs and workarounds for them :) Previous one you can find &lt;a href="https://internetexception.com/2016/04/22/xamarin-frame-and-style-with-padding/" title="Xamarin Frame and Style with Padding"&gt;here&lt;/a&gt;&#10;. This one is again about Frame control. I promise that another one will be about something else B) Issue can be observed when you bind BackgroundColor property of Frame control and something will trigger change of view model source property binded to background color.&lt;/p&gt;</description></item><item><title>Xamarin Frame and Style with Padding</title><link>https://internetexception.com/2016/04/22/xamarin-frame-and-style-with-padding/</link><pubDate>Fri, 22 Apr 2016 05:10:00 +0200</pubDate><guid>https://internetexception.com/2016/04/22/xamarin-frame-and-style-with-padding/</guid><description>&lt;p&gt;If you are a bit advanced with Xamarin you should already now that there is possibility of styling your controls almost like in WPF. Almost, because there is a few strange bugs involving this. For example there is a problem with styling a Padding property in Frame. Consider following Xaml of Xamarin application (I tested it in Android):&lt;/p&gt;</description></item></channel></rss>