Xamarin.Forms And Resources

ResourcesOften, there will be multiple views in your form that share the same values (e.g., font size, color, etc.).  There are a couple ways you can handle this:

  • Create a resource dictionary and then refer to the resources using the key and the keyword StaticResource
  • Declare constants and then refer to them using x:Static

While the names are very similar, x:Static and Static resources work differently.  The former access a public static constant  (or a public static property defined by a class).  The latter, static resources, is a markup extension supported by xAML that depends on the creation of a resource dictionary.

Let’s look at how you might use both.  More…

Share
Posted in Essentials | Leave a comment

Yet Another Podcast #135 – Miguel de Icaza on Xamarin

Miguel de IcazaMiguel de Icaza is one of the most respected technologists in the industry, known  for starting the Gnome and Mono projects.  He is the CTO and co-founder of Xamarin and a genuinely nice person.  Today we talk about Xamarin, Xamarin.Forms and mobile programming.

 

Listen | Yet Another Podcast

 

rss

iTunes

Share
Posted in Essentials, Xamarin | Tagged | Leave a comment

Get Insight into your Xamarin Application

Xamarin now offers a crash and analytics program that integrates beautifully into Instrumentationtheir applications, including Xamarin Forms.  It is very easy to get started, and in this article we’ll look at a very simple example…

…There are a few boiler plate steps to take to get Insights up and running:

  • Register an application with the Xamarin Insights Web Portal
  • Add the Xamarin Insights NuGet package to your application.
  • Logging and crash info will be sent to the web portal.  Note!! By default that info is only set when you have a wifi connection.
  • If you don’t have a connection, the data is stored locally, and synced to the portal when you connect to the Internet
  • You log in to the web portal to review the status of your application

Complete article here

 

Share
Posted in Xamarin | Tagged | Leave a comment

Xamarin: Calling Native code from a Hybrid Application

In a recent post, I described how to import code from ASP.NET MVC into a Xamarin Hybrid application.  In this post, I will show how you can reach into native code from that application.

Remember that our application has Views (.cshtml files), a Model class and a ViewModel class.  You will also remember that the UI consisted of a main page (with thumbnails of the images) and a details page with the image and associated meta-data.  We’d like to be able to tweet the image, and iOS makes this pretty simple.

 

Continued here

Share
Posted in Xamarin | Leave a comment

New Pluralsight Course: Kendo UI and AngularJS

Incredibly pleased to announce the release of my latest KendoAngular
Pluralsight course: Kendo UI and AngularJS From Scratch

This course is targeted at Kendo UI programmers who wish to integrate Kendo UI into AngularJS programs (e.g., rather than jQuery).  In only an hour and a quarter you’ll learn all you need to know to be productive.

Share
Posted in AngularJS, Kendo UI | Tagged | 1 Comment

Yet Another Podcast Show 134 – Scott Hunter and ASP.NET V-Next

Scott Hunter of Microsoft joins Jon Galloway and me to discuss ASP.NET V-Next.  Scott HunterIf you are a web programmer do not miss this show.

 

 

 

Listen | Yet Another Podcast

 

rss

iTunes

Share
Posted in ASP.NET, Essentials | Tagged | 1 Comment

Falafel2Go and MVVM

When we decided to rewrite Falafel2Go, we quickly decided to do so MVVM Structurewith Xamarin Forms.

One of the many advantages of Xamarin Forms is how quickly you can write the software. Among the other advantages are that it supports XAML and databinding.

We thus made the somewhat obvious choice to use the MVVM pattern.

Complete posting here

Share
Posted in Essentials | 1 Comment

Free e-Book: Learning to Master Cross-Platform Mobile Development With Xamarin

The good folks at Falafel have put together all my posts (to date) on e-book Xamarin and Xamarin Forms into an e-book, which is available free at http://jliberty.me/masteringXamarinBook

Enjoy, and thanks!

Share
Posted in Essentials | 4 Comments

iOS 8 is the biggest release since… iOS

iOS is now available and it is huge.  Huge.  Bigger than that.

There are 15 new frameworks and over 4,000 new or modified APIs.  The primary goals of this release are extensibility and adaptive ios8 logo(reactive) design, and they have gone very far with both, especially extensibility.

Among the highlights for developers are APIs for

  • Fingerprint authentication
  • Home Automation
  • Health and Medical
  • Photo editing
  • Interacting with cloud-based documents
  • Identifying more bar codes
  • Audio/video for gaming
  • Apple Pay and general NFC

Continued here

Share
Posted in iOS, Xamarin | 3 Comments

Yet Another Podcast #133 – Jon Galloway on ASP.NET

Jon Galloway, co-host, friend and Microsoft Evangelist joins me to discuss Jon GallowayASP.NET MVC 5.

 

Listen | Yet Another Podcast

 

rss

iTunes

Share
Posted in ASP.NET, Essentials | Tagged | 2 Comments

A Xamarin Project

Recently, Steve Smith, CTO of Falafel suggested we form a small team to re-write splash screenour Falafel2Go application which had been written a year earlier in Xamarin.  The goal was to learn, to demonstrate and to blog about Xamarin Forms.  This project was undertaken by Jesse Liberty, Venkata Koppaka,  and Josh Morales, with J. Tower kibitzing and Steve Smith providing the carrot and the stick.  All of us were working in our down-time, and so we didn’t expect the project to move along terribly quickly.

We started by creating a brand new Xamarin Forms application and setting up the code structure.  Xamarin Forms practically cry out for MVVM and so we began by creating  Views, Models and ViewModels folders.  We spent quite a bit of time discussing navigation and decided that we would not fight the platform, but that V1 would use a relatively simple ListView to act as a menu of Activities that the user could choose from.  Later in the process our designer, Matt Kurvin provided us with some beautiful visualizations for navigation.

Continued here

Share
Posted in Essentials | 2 Comments

Yet Another Podcast #132: FalafelCon Roundtable

Talking with J. Tower, Josh Eastburn and Venkata Koppaka of Falafel Software about their upcoming presentations at FalafelCon.  We also discuss working remotely, software, AngularJS, Xamarin and much more.

Special 10% FalafeCon discount for
Yet Another Podcast Listeners.  

Listen | Yet Another Podcast

 

rss

iTunes

 

Share
Posted in AngularJS, ASP.NET, Azure, Bootstrap, Falafel Software, iOS, JavaScript, Kendo UI, Mobile, Observations, Open Source, Patterns & Skills, Xamarin, XAML | Tagged | 1 Comment