<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Technical Thoughts</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/gautamdh/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/gautamdh/feed.xml</link>
    <description />
    <lastBuildDate>Wed, 17 Apr 2019 04:09:29 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>How to change default font in Windows Store Apps (C#, XAML)</title>
      <link>https://docs.microsoft.com/archive/blogs/gautamdh/how-to-change-default-font-in-windows-store-apps-c-xaml</link>
      <pubDate>Sat, 15 Mar 2014 11:39:00 GMT</pubDate>
      <dc:creator><![CDATA[Gautam Dhameja]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/gautamdh/2014/03/15/how-to-change-default-font-in-windows-store-apps-c-xaml/</guid>
      <description><![CDATA[By default, the font family in Windows Store Apps is set to Segoe UI. That means, if you use any...]]></description>
      <content:encoded><![CDATA[<span style="font-family: georgia,palatino;font-size: small">By default, the font family in Windows Store Apps is set to <strong><em>Segoe UI</em></strong>. That means, if you use any control which has a font family property (<em>ex: TextBlock, RichTextBlock, Button, etc.</em>) and if you do not set the value of this property explicitly, then Segoe UI will be it's default value.</span>

<span style="font-family: georgia,palatino;font-size: small">To use other fonts, there is a very simple and usual way that you set the font family property of each and every control with any font you like.</span>

<span style="font-family: georgia,palatino;font-size: small">But, what if you want a font across the application in all or almost all the controls that you have in your app. Then, its not a very good idea that you set the same font family to all the controls individually. </span>

<span style="font-family: georgia,palatino;font-size: small">It will be better that you override the default font of the app (Segoe UI) with the font that you need.</span>

<span style="font-family: georgia,palatino;font-size: small">Let me tell you how to do that...</span>

<span style="font-family: georgia,palatino;font-size: small">The font family resource key name that points to the default font is - <em><span style="color: #0000ff"><span style="font-family: times new roman,times;font-size: medium">ContentControlThemeFontFamily</span>.
</span></em><span style="color: #000000">To override the value of this resource, we will have to set the new value in App.xaml or in any resource dictionary that is declared in App.xaml.</span></span>

<span style="font-family: georgia,palatino;font-size: small"><span style="color: #000000">Below is the code that shows how to set the default font in the app.</span></span>

<span style="color: #0000ff;font-family: times new roman,times;font-size: medium">&lt;FontFamily x:Key="<span style="color: #993300">ContentControlThemeFontFamily</span>"&gt;<em><span style="background-color: #ffff00">YOUR NEW FONT NAME</span></em>&lt;/FontFamily&gt; </span>

<span style="font-family: georgia,palatino;font-size: small"><span style="color: #000000"> </span></span><span style="font-family: georgia,palatino;font-size: small"><span style="color: #000000">T</span><span style="color: #000000">his new font will now be the default font of your app.</span></span>]]></content:encoded>
    </item>
    <item>
      <title>Getting Started With Cross Platform App Development Using Xamarin And MvvmCross</title>
      <link>https://docs.microsoft.com/archive/blogs/gautamdh/getting-started-with-cross-platform-app-development-using-xamarin-and-mvvmcross</link>
      <pubDate>Tue, 01 Oct 2013 13:27:00 GMT</pubDate>
      <dc:creator><![CDATA[Gautam Dhameja]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/gautamdh/2013/10/01/getting-started-with-cross-platform-app-development-using-xamarin-and-mvvmcross/</guid>
      <description><![CDATA[[UPDATED - March 15, 2014]

As mobile apps are becoming more and more popular day by day, people...]]></description>
      <content:encoded><![CDATA[<strong><span style="font-family: georgia, palatino;font-size: small">[UPDATED - March 15, 2014]</span></strong>

<span style="font-family: georgia, palatino;font-size: small">As mobile apps are becoming more and more popular day by day, people are finding easy ways to create apps for different platforms. One such "<em>easy</em>" way is to create cross platform apps where you code once and run on all platforms. There are several tools present that allow you to do that - one such tool is Xamarin.</span>

<span style="font-family: georgia, palatino;font-size: small">Let me introduce you to Xamarin and MvvmCross.</span>

<span style="font-family: georgia, palatino;font-size: small"><strong>Xamarin</strong> is a tool that allows you to develop Android and iOS apps using visual studio and C#.</span>

<span style="font-family: georgia, palatino;font-size: small"><strong>MvvmCross</strong> is a cross platform implementation of Mvvm pattern that allows code reuse among platform specific projects.</span>

<span style="font-family: georgia, palatino;font-size: small">In this post, I am sharing 10 simple steps to get started with <em>Cross platform app development using <a target="_blank" href="https://xamarin.com" title="Xamarin">Xamarin</a> and <a target="_blank" href="https://github.com/slodge/MvvmCross" title="MvvmCross">MvvmCross</a></em>. These steps can help you set up the required development environment to start developing cross platform apps.</span>

<span style="font-family: georgia, palatino;font-size: small">(<em>Assuming that you have Microsoft Visual Studio 2013 installed on your development PC</em>.)</span>

<span style="font-family: georgia, palatino;font-size: small"><strong>1.</strong> Download Xamarin from - <a target="_blank" href="https://xamarin.com/download" title="Download Xamarin">https://xamarin.com/download</a></span>

<span style="font-family: georgia, palatino;font-size: small"><strong>2.</strong> If you do not have a Xamarin account then register for it (trial will also work). In order to create Android and iOS projects you will need a Xamarin account.</span>

<span style="font-family: georgia, palatino;font-size: small"><strong>3.</strong> <span style="text-decoration: line-through">To create the core project using PCL you will need to add Mono Android and Mono Touch entries in the PCL targets. You can do that by following steps here - <a target="_blank" href="https://slodge.blogspot.in/2013/04/my-current-pcl-setup-in-visual-studio.html" title="Add Mono Android and Mono Touch XML files">https://slodge.blogspot.in/2013/04/my-current-pcl-setup-in-visual-studio.html</a> </span>This step is no longer required. Xamarin now supports Portable Class Libraries out of the box.</span>

<span style="font-family: georgia, palatino;font-size: small"><strong>4.</strong> Now open visual studio and create a new solution with a PCL project that targets <em>.net 4.5, Windows Store Apps, Windows Phone Apps, <span style="text-decoration: line-through">Mono Android </span>Xamarin.Android and <span style="text-decoration: line-through">Mono Touch</span> Xamarin.iOS</em>. Make sure to select Windows Phone 7.5 or Higher otherwise you will get an error in PCL creation. </span>

<span style="font-family: georgia, palatino;font-size: small"><strong>5.</strong> Add “<em>mvvmcross</em>” nuget package to the PCL project. </span>

<span style="font-family: georgia, palatino;font-size: small"><strong>6.</strong> Now add 1 Android project, 1 Windows Phone Project, 1 Windows Store Project and 1 iOS project to the solution. (as per the platforms you want to target)</span>

<span style="font-family: georgia, palatino;font-size: small"><strong>7.</strong> Add “<em>mvvmcross</em>” nuget package to each of these platform specific projects. </span>

<span style="font-family: georgia, palatino;font-size: small"><strong>8.</strong> Every project will have a <em>To-do</em> MvvmCross folder with a text file inside. Follow the steps in that text file for each project. </span>

<span style="font-family: georgia, palatino;font-size: small"><strong>9.</strong> Add reference to the core (PCL) project in the platform specific projects.</span>

<span style="font-family: georgia, palatino;font-size: small"><strong>10.</strong> There is no step 10. You are good to go.</span>

<span style="font-family: georgia, palatino;font-size: small"><strong>Tips:</strong> </span>

<span style="font-family: georgia, palatino;font-size: small">1. For faster debugging keep an Android device handy. It will be faster than the mono android emulator that comes with Xamarin.</span>

<span style="font-family: georgia, palatino;font-size: small">2. If you are debugging android through mono android emulator then keep in mind, lower the resolution faster the emulator performance.</span>

<span style="font-family: georgia, palatino;font-size: small">3. For debugging iOS apps you will need a Mac Build Host connected via network to your computer. Here are the steps to set it up - <a target="_blank" href="https://docs.xamarin.com/guides/ios/getting_started/installation/windows" title="Setup Mac Build Host">https://docs.xamarin.com/guides/ios/getting_started/installation/windows</a></span>

<span style="font-family: georgia, palatino;font-size: small">4. Make sure you have your windows phone emulator running properly.</span>

<strong><span style="font-family: georgia, palatino;font-size: small">References:</span></strong>

<span style="font-family: georgia, palatino;font-size: small">1. <a target="_blank" href="https://mvvmcross.wordpress.com/">https://mvvmcross.wordpress.com/</a></span>
<span style="font-family: georgia, palatino;font-size: small">2. <a target="_blank" href="https://channel9.msdn.com/Events/TechDays/Belgium-2013/84">https://channel9.msdn.com/Events/TechDays/Belgium-2013/84</a></span>
<span style="font-family: georgia, palatino;font-size: small">3. <a target="_blank" href="https://www.slideshare.net/msdnbelux/building-cross-platform-mobile-solutions">https://www.slideshare.net/msdnbelux/building-cross-platform-mobile-solutions</a></span>

<strong><span style="font-family: georgia, palatino;font-size: small">
Contributors:</span></strong>

<span style="font-family: georgia, palatino;font-size: small"><a target="_blank" href="https://social.msdn.microsoft.com/Profile/vibhu%20banga">Vibhu</a>, <a target="_blank" href="https://social.msdn.microsoft.com/Profile/Krishnachytanya%20Ayyagari">KC</a>, <a target="_blank" href="https://social.technet.microsoft.com/profile/ts_prasanna">Prasanna</a>, <a target="_blank" href="https://social.msdn.microsoft.com/profile/gautamdh/">Gautam</a></span>]]></content:encoded>
    </item>
  </channel>
</rss>