Click here to Skip to main content
12,360,037 members (62,117 online)
Click here to Skip to main content

Tagged as

Stats

48.5K views
32 bookmarked
Posted

MvvmCross - v3 - Writing a First App

, 23 Mar 2013 Ms-PL
MvvmCross - A CrossPlatform MVVM Sample
Images
AnMvvmCross4.png
TipCalc_Android.png
TipCalc_Android_Styled.png
TipCalc_Sketch.png
TipCalc_Store_Designer.png
TipCalc_Store_Emu.png
TipCalc_Summary.png
TipCalc_Touch_Design.png
TipCalc_Touch_Outlet.png
TipCalc_Touch_Sim.png
TipCalc_WP_Designer.png
TipCalc_WP_Emu.png
TipCalc_Wpf_Designer.png
TipCalc_Wpf_Run.png
<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)

Share

About the Author

slodge
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 | :)

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160621.1 | Last Updated 23 Mar 2013
Article Copyright 2013 by slodge
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid