This file contains hidden or 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
// JS array equivalents to C# LINQ methods - by Dan B. | |
// First: This version using older JavaScript notation for universal browser support (scroll down for ES6 version): | |
// Here's a simple array of "person" objects | |
var people = [ | |
{ name: "John", age: 20 }, | |
{ name: "Mary", age: 35 }, | |
{ name: "Arthur", age: 78 }, | |
{ name: "Mike", age: 27 }, |
This file contains hidden or 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
public override void OnActivated (UIApplication application) | |
{ | |
//When your app is backgrounded, iOS takes a snapshot. | |
//When the app comes back from the background it shows this snapshot at launch until your app is ready | |
//Sometimes apple forgets to remove the splash screen. | |
//Your app is in the forground and working. To prove it you can rotate, and see half your real screen. | |
//To prevent this from happening you can manually remove the view | |
foreach (var w in application.Windows) { | |
if (w != null && w != window) { |
This file contains hidden or 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
public class MvxSwipeRefreshLayout : SwipeRefreshLayout | |
{ | |
/// <summary> | |
/// Gets or sets the refresh command. | |
/// </summary> | |
/// <value>The refresh command.</value> | |
public ICommand RefreshCommand { get; set;} | |
public MvxSwipeRefreshLayout(Context context, IAttributeSet attrs) | |
: base(context, attrs) |
This file contains hidden or 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
using System; | |
using Foundation; | |
using UIKit; | |
using TwinCoders.TouchUtils.Extensions; | |
using CoreGraphics; | |
namespace SalesForce.Touch.Views | |
{ | |
public abstract partial class ParentViewController | |
{ |
This file contains hidden or 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
public interface IRemove | |
{ | |
ICommand RemoveCommand { get; } | |
} |
This file contains hidden or 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
using System; | |
using MonoTouch.UIKit; | |
using System.Windows.Input; | |
namespace com.refractored.mvxbindings | |
{ | |
/// <summary> | |
/// Mvx user interface refresh control. | |
/// </summary> | |
public class MvxUIRefreshControl : UIRefreshControl |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using MonoTouch.UIKit; | |
namespace Async.iOS | |
{ | |
public static class Layout | |
{ |