This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
set.Apply(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'ruby_apk' | |
require 'read_ipa' | |
# read version info from APK | |
apk = Android::Apk.new('<APK_FILENAME>.apk') | |
puts apk.manifest.version_name | |
puts apk.manifest.version_code | |
# read version info from IPA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<TabbedPage xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
x:Class="StaticTabbedPageSample.Views.StaticTabs" | |
Title="Static Tabs Sample"> | |
<TabbedPage.Children> | |
<ContentPage Title="Tab 1"> | |
<StackLayout Orientation="Vertical" Padding="10,0"> | |
<Label Text="This is the content for the first tab" /> | |
<Button Text="Click here" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace BeerGroups.Core.Models | |
{ | |
public class Beer | |
{ | |
public string Name { get; set; } | |
public string Brewery { get; set; } | |
public string Style { get; set; } | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace MyApp.Portable.ViewModels | |
{ | |
public class BaseViewModel : MvxViewModel | |
{ | |
protected void ShowViewModelAndClearBackStack<TViewModel>() | |
where TViewModel : BaseViewModel | |
{ | |
ShowViewModel<TViewModel>(); | |
ChangePresentation(new ClearNavBackStackHint()); | |
} |