When developing, having the right snippets of code handy can give you back a huge part of your day. In this contest, we want you to give us the (GitHub) Gist of your favorite snippets to help your fellow Xamarin developers write amazing mobile apps even faster!
- Create a Gist on GitHub with your favorite code snippet
- Tweet your Gist link and name of what your snippet does with hashtags #XamarinGist & #Xamarin
- Post your Gist to to this Forum thread
- Bonus points: Link a simple sample project that demonstrates your snippet
Need help with a Gist? Click here! Need a Gist template? Try this one:
Snippet Name: iOS Colors
Function: Hex value to UIColor
public static UIColor FromHex(this string hexValue)
int colValue = int.Parse (hexValue,
(((float)((colValue & 0xFF0000) >> 16))/255.0f),
(((float)((colValue & 0xFF00) >> 8))/255.0f),
(((float)(colValue & 0xFF))/255.0f));
//Set the text color of the label to 39FF3F.
lblTextResult.TextColor = "39FF3F".FromHex ();
Prize: Exclusive long sleeve Xamarin t-shirt!
5 entries will be chosen at random, so the more snippets you submit,
the better your chances of winning!
All submissions must be made by Monday, February 23rd at 12pm EST. We will evaluate each snippet based on concept, code quality, and originality. A valid entry consists of a tweet, forum post, and the Gist of your Snippet. All submissions must be unique. Contestants should follow @XamarinHQ to enable us to DM you for private follow-up. There is no purchase necessary to enter the Give Us The Gist of It Contest!