Skip to content

Instantly share code, notes, and snippets.

building apps

Ed Snider edsnider

building apps
View GitHub Profile
edsnider / SomeView.cs
Last active Sep 13, 2020
MvvmCross UIView Tap Command Binding
View SomeView.cs
var set = this.CreateBindingSet<SomeView, SomeViewModel>();
// Use UIView Tap extension method in Cirrious.MvvmCross.Binding.Touch.Views.Gestures:
set.Bind (whateverLabel.Tap ())
.For (v => v.Command)
.To (vm => vm.WhateverCommand);
edsnider / versionnumbers.rb
Created Jul 22, 2015
Get APK and IPA version numbers with Ruby
View versionnumbers.rb
require 'ruby_apk'
require 'read_ipa'
# read version info from APK
apk ='<APK_FILENAME>.apk')
puts apk.manifest.version_name
puts apk.manifest.version_code
# read version info from IPA
edsnider / StaticTabs.xaml
Last active Aug 29, 2015
Static tabs in a Xamarin.Forms TabbedPage
View StaticTabs.xaml
<?xml version="1.0" encoding="utf-8" ?>
<TabbedPage xmlns=""
Title="Static Tabs Sample">
<ContentPage Title="Tab 1">
<StackLayout Orientation="Vertical" Padding="10,0">
<Label Text="This is the content for the first tab" />
<Button Text="Click here" />
edsnider / Beer.cs
Last active Aug 29, 2015
Windows Phone 8.1 SemanticZoom
View Beer.cs
namespace BeerGroups.Core.Models
public class Beer
public string Name { get; set; }
public string Brewery { get; set; }
public string Style { get; set; }
edsnider / BaseViewModel.cs
Last active Aug 29, 2015
Clearing WP back stack in MvvmCross
View BaseViewModel.cs
namespace MyApp.Portable.ViewModels
public class BaseViewModel : MvxViewModel
protected void ShowViewModelAndClearBackStack<TViewModel>()
where TViewModel : BaseViewModel
ChangePresentation(new ClearNavBackStackHint());
You can’t perform that action at this time.