Modifying Xamarin Lists with Custom Controls

I was recently creating a proof of concept, which as you know should be fast and easy.  Not so much at Falafel where we like to turn out quality softwaSiteCoreFullLinesre that looks great, even if we’re going to throw it away.  Good engineering is in your blood, or it isn’t.

In any case, I created a list of our available positions and iTunes did its normal “thing” by placing the line between each entry indented on the left and running all the way to the right side.

Really. Take out your phone and check.

Matt, our designer, thought this looked unbalanced and wanted the lines to extend all the way to the margins in both directions.

Custom Controls

No problem, just a bit of customization required.  The two custom controls I needed were a replacement for LinkedList and a replacement for ViewCell.

More here.

 

Share
Posted in Essentials | Leave a comment

Apple Watch Is A Needful Thing

Needful Things is the name of a book by Stephen King (who I happen to think is America’s most underrated author, and best storyteller, but that is another matter).  I’ve co-opted his title to mean those things that seem absurdly unnecessary (but desirable), and which worm themselves into your life, so much so that you know already that if it breaks you will run out and buy another.  My own history of needful things includes

  • Wireless phones
  • DVRs
  • iPhones, 3,4,5,6

And now the Apple Watch.  I loved my Pebble, but honey the affair is over, sorry to see you go, but there  is a new love in my life.

The Apple Watch

The Apple Watch has all the hallmarks of a great Apple product

  • The essential is easy, everything else is possible
  • It is beautiful
  • It is smarter than anything else in its category
  • It is expensive

Continued here.

Share
Posted in Essentials | Leave a comment

Sitecore SDK for Xamarin

Sitecore is a high-end CMS. Putting data from its databases onto a phone is suddenly very easy.  Sitecore and Xamarin recently announced the Sitecore SDK for Xamarin. This post will run through an application that handles an implicit relationship to retrieve data.

The primary relationship we’ll look at comes from two tables.  One has the GUIDs of all the currently available jobs, the other ties those guids to the name of each job.  Note that the GUIDs are in one long string.

By experimentation we learn that the job objects we’ll get from the database have a number of fields we won’t need, and three we will.  We thus create our model class as follows

Continued here

Share
Posted in Essentials | Leave a comment

Yet Another Podcast #136 K. Scott Allen

Scott Allen is extremely well regarded in the industry, for hisK. Scott Allen programming skill, his teaching skills and for being a kind and nice man.

 

 

 

 

 

Listen | Yet Another Podcast

rss

iTunes

 

 

 

Share
Posted in Essentials | Leave a comment

Damn it! Can’t you make your code less complex?

<Rant>

I am so tired of complex code that can’t be read without having to trace definitions within definitions withshutterstock_132360455in references, within Interface definitions within indirection….  until I have no flippin’ idea what is going on.

This is even worse when perpetrated in sample code.  Can someone please tell sample code writers that the rule is “make it as simple as possible and demonstrate only one thing; and that one thing is not how clever you are.”

Continued

 

 

Share
Posted in Essentials | 1 Comment

Song of the Day: Press the Buzzer

DarWilliamsPress the Buzzer is based on the infamous Milgram Experiment.  This brilliant song captures the entire essence of the experiment and the fall out from it, without ever losing its compelling folk rock rhythm.

Like nearly all her music, this one is highly recommended.

I’m feeling sorry for this guy that I press to shock
He gets the answers wrong, I have to up the watts

And he begged me to stop, but they told me to go
I press the buzzer, I press the buzzer…

 

Share
Posted in Essentials | Leave a comment

Xamarin.Forms: Incremental Search

I recently posted about obtaining data for purposes of creating demonstration programs.  IncrementalSearchFinal

That actually was written in service to today’s post, which will use that data to create a list of “people” and then allow you to search incrementally, as shown in the illustration; I typed “Jaco” and any name that contained Jaco was brought up.

This post shows two meaningful techniques: it reviews grouping and it demonstrates incremental searches.

Continued here

Share
Posted in Xamarin | Tagged , | Leave a comment

This Post Has No Value

AngerI set out to write a post on Incremental Searching in Xamarin applications (which I will do next) but along the way I realized i need a goodly amount of data to search.

This is a  problem that arises fairly often, so I wrote a quick and dirty solution which is not terribly generalizable but was fun nonetheless.

More

Share
Posted in Essentials | Leave a comment

IoT – Opportunity Knocks

This marks the first in a series of postings on the Internet of Things (IoT).  Come with me as I learn more about these emerging technologies which promise to revolutionize everything we do.

First, the obligatory introduction for those of you who have been living in a cave…

IoT

IoT is the use of web/network based everyday appliances and other, well, things. IoT represents vending machines that keep their own inventory, toasters that alert you when the toast is done, fire alarms that wake you while calling the fire fighters, and so much more.

Knockertunity Ops

IoT presents a significant opportunity for developers; a technology space that is growing rapidly, and in many directions at once.  While the market may not yet support a substantial investment, this is a sector you want to track closely.

Continued

Share
Posted in IoT | Leave a comment

Dialing a number using DependencyService in Xamarin.Forms

OldPhone.stockAs you can probably tell from my previous posts, I love Xamarin.Forms; principally because of XAML and DataBinding.  It is just easier to create a cross-platform (iOS, Android and Windows Phone) with Xamarin.Forms than any other way.

Sometimes however, you do need to reach down to the native code to accomplish something that just isn’t wrapped in Xamarin.Forms.  One good example is dialing the phone. Let’s build an application that does just that.

Continued here

 

Share
Posted in Xamarin | Tagged , | 1 Comment

Yet Another Podcast – Reboot!

Yet Another Podcast (YAP) had quite a run in its first iteration.  We had (among many others), onair_istock_thumb.jpgScott Guthrie, Miguel de Icazza, Scott Hanselman, Charles Petzold, John Papa, Laurent Bugnion… the list is too long.

Reboot

The last show, however, was last year, show #135 with Miguel de Icazza.  It is time to restart, inviting industry leaders in the Xamarin and .NET world to come back and bring us up to date.  So…  our first new show will be May 13, and we’ll try for at least two shows per month.

I’m working on setting up a mailing list so that you can (optionally) be informed when a new show is available.  At a minimum, we’ll be available through iTunes and Stitcher as well as this site.

More soon….

 

Share
Posted in Essentials | Leave a comment

The $20,000 Xamarin Programmer

If Xamarin programing is going to be how you make your living,  then I highly recommend this list of hardware and software.

iOS, OSX, Android, Windows Phone, Windows

 

ParallelsIf you are going to develop on both Mac and Windows, it is painful to switch back and forth between machines.

Ideally, you’ll run Windows on a Mac, using Parallels or something similar. Parallels is the right thing, but you need hardware that will fully support dual operating systems.

MacPro

MacProBut even a fully tricked out MacBookPro is not quite powerful enough to make this entirely painless.  When compiling in Windows, I find that the Mac slows to a crawl.

The solution is to get serious and buy a MacPro (desktop) with enough memory (32GB) and enough Cores (6) to never experience a slow down.  You’ll also want to get a lot of storage, I recommend at least a Terrabyte of Flash storage.  This configuration will set you back just over $5,000.

 

Continued here

 

 

Share
Posted in Essentials, Opinion, Product Reviews, Xamarin | Tagged , | 2 Comments