Skip to content

Instantly share code, notes, and snippets.

View paulpatarinski's full-sized avatar

Paul P paulpatarinski

  • Simple Productions Inc
  • Miami
View GitHub Profile
@paulpatarinski
paulpatarinski / iOSDeviceAutomation.md
Last active February 9, 2017 15:08
iOS Device Automation

Setting up a device for automation

  1. Turn off auto-sleep
  2. Turn off iCloud Backup (otherwise you get a popup preventing automation from running)
  3. Insert Sim (otherwise you get a popup preventing automation from running)
@paulpatarinski
paulpatarinski / GenymotionOnWin.md
Last active May 10, 2016 14:48
Resolving Genymotion issues on Windows
@paulpatarinski
paulpatarinski / CreateNuget.md
Last active February 18, 2016 23:19
How to create NuGets
@paulpatarinski
paulpatarinski / XamFormsXaml.md
Last active August 29, 2015 14:17
Xamarin Forms Xaml

This gist aims to demystify how Xamarin Forms Xaml works.

Here is the call stack executed to render a Xaml File.

1.LoadFromXaml - BindableObject Extension

2.XamlLoader.Load - uses XmlReader to read the xaml file

using (XmlReader reader = XmlReader.Create((TextReader) new StringReader(xaml)))
@paulpatarinski
paulpatarinski / RemoveAppbarMenuButton.md
Last active August 29, 2015 14:17
Xamarin Forms Remove Appbar Menu Button
public static void RemoveMenuButton(this ApplicationBar applicationBar)
{
  var appBarMenuButton =
  applicationBar.Buttons.Cast<ApplicationBarIconButton>()
    .FirstOrDefault(x => x.Text.Equals("Main Menu"));
  
  if(appBarMenuButton != null)
  {
 applicationBar.Buttons.Remove(appBarMenuButton);
@paulpatarinski
paulpatarinski / XamarinMacSetup.md
Last active August 29, 2015 14:16
Xamarin/Telerik Appbuilder Mac Setup

These are setup steps to get a Mac working with a Win 8 VM running Visual Studio 2013.

Goals :

  • Be able to dev using Visual Studio(or Xamarin Studio) utilizing AppBuilder and Xamarin for all platforms:
    • Win Phone 8/8.1
    • iOS
    • Android

Mac Setup :

  • Software :
@paulpatarinski
paulpatarinski / XamFormsBindableProp
Created February 17, 2015 16:49
Xamarin Forms Bindable Property Resharper Template
public static readonly BindableProperty $propertyName$Property =
BindableProperty.Create("$propertyName$", typeof($propType$), typeof($controlType$), default($propType$));
public $propType$ $propertyName$
{
get { return ($propType$)GetValue($propertyName$Property); }
set { SetValue($propertyName$Property, value); }
}
@paulpatarinski
paulpatarinski / XamarinEvolveQuestions.md
Last active August 29, 2015 14:07
Xamarin Evolve Questions
  1. How to do error handling? Is there a global error handling event?
  • You can use the MessagingCenter
  1. Styling? Is there a way to apply global styles, templating?
  1. How to create a slide up/down effect for a footer? (Similar to Google Maps)
  1. Images Render differently depending on FromFile vs FromResource?
  2. Support for SVG?
  1. How to create a performant listview?