Click here to Skip to main content
15,894,362 members
Articles / Programming Languages / C#

MvvmCross - v3 - Writing a First App

Rate me:
Please Sign up or sign in to vote.
4.91/5 (8 votes)
23 Mar 2013Ms-PL2 min read 74.2K   34  
MvvmCross - A CrossPlatform MVVM Sample
<h1>
    MvvmCross - A CrossPlatform Mvvm Sample</h1>
<h2>
    Introduction</h2>
<p>
    MvvmCross is a truely Cross-Platform Mvvm C# Framework.</p>
<p>
    This series&nbsp;of&nbsp;articles will&nbsp;walk you through the use of MvvmCross to produce&nbsp;a first simple app - a TipCalculator.</p>
<p>
    Beyond this first walkthrough, there are many other things that MvvmCross can do - but this article will just stick to the basics for now!</p>
<h2>
    Background</h2>
<p>
    MvvmCross is now 18 months old.</p>
<p>
    This article is about v3 - code-named Hot Tuna.</p>
<h2>
    Using the code</h2>
<p>
    The code for this article is in: <a href="https://github.com/slodge/MvvmCross-Tutorials/tree/master/TipCalc">https://github.com/slodge/MvvmCross-Tutorials/tree/master/TipCalc</a></p>
<p>
    Setting up MvvmCross v3 is quite awkward at the moment - you need to setup Microsoft SDKs, Xamarin 2.0 products and some strange Portable Class Library (PCL) hacks.</p>
<p>
    This setup is documented on <a href="http://slodge.blogspot.co.uk/2012/12/cross-platform-winrt-monodroid.html">http://slodge.blogspot.co.uk/2012/12/cross-platform-winrt-monodroid.html</a></p>
<p>
    This setup is changing in the next few weeks -&nbsp;official Xamarin PCL support is coming -&nbsp;I will update this article when the new simpler steps arrive</p>
<h2>
    The Target</h2>
<p>
    In this first Model-View-ViewModel project, we&rsquo;ll aim to create a simple single screen cross-platform application for calculating the tip at a restaurant.</p>
<p>
    Here&#39;s a sketch of where we hope to end up:</p>
<p style="text-align: center">
    <img alt="" src="https://raw.github.com/slodge/MvvmCross/v3/v3Tutorial/Pictures/TipCalc_Sketch.png" style="height: 225px; width: 125px"></p>
<p>
    The goals of this first application are all about <strong>introducing</strong>:</p>
<ol>
    <li>
        the general structure of MvvmCross applications</li>
    <li>
        some of the code elements required in all MvvmCross applications</li>
    <li>
        how data-binding support on Xamarin.Android and Xamarin.iOS (the products formerly known as Mono for Android and MonoTouch)</li>
</ol>
<p>
    Within this guide, we won&#39;t attempt to provide any introduction to the Apple, Google, Microsoft, and Xamarin products and platforms - there are plenty of guides available already for all of those. Instead, we&#39;ll focus instead on pure, unadulterated MvvmCross Nirvana.</p>
<h2>
    The Articles</h2>
<p>
    TODO</p>
<h2>
    History</h2>
<p>
    22nd March 2013 - First&nbsp;Submission</p>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Microsoft Public License (Ms-PL)


Written By
Software Developer Cirrious Ltd
United Kingdom United Kingdom
Developing software since 1982. Currently engrossed in both cloud and mobile technologies. Currently spending far too much time on MvvmCross... and loving every second of it Smile | :)

Comments and Discussions