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
using System; | |
using Xamarin.Forms; | |
namespace App8 | |
{ | |
public class App | |
{ | |
public static Page GetMainPage () | |
{ | |
return new MyPage(); |
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
using System; | |
using Xamarin.Forms.Xaml; | |
using Xamarin.Forms; | |
namespace WorkingWithImages | |
{ | |
// You exclude the 'Extension' suffix when using in Xaml markup | |
[ContentProperty ("Source")] | |
public class ImageResourceExtension : IMarkupExtension | |
{ |
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" ?> | |
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:i18n="clr-namespace:QuickTodo;assembly=QuickTodo" | |
x:Class="TodoXaml.TodoItemXaml"> | |
<ContentPage.Content> | |
<StackLayout VerticalOptions="StartAndExpand"> | |
<Label Text="{i18n:Translate Name}" /> |
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
using System; | |
using MonoTouch.CoreImage; | |
using MonoTouch.Foundation; | |
using MonoTouch.UIKit; | |
// CoreImage Filter Reference | |
//https://developer.apple.com/library/ios/#documentation/GraphicsImaging/Reference/CoreImageFilterReference/Reference/reference.html | |
namespace CoreImage | |
{ |
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
// credit for Objective-C version to http://chrisrisner.com/Windows-Azure-Mobile-Services-and-iOS | |
GetAllUrl = "https://taskyazure.azure-mobile.net/tables/TodoItem?$filter=(complete%20eq%20false)"; | |
AddUrl = "https://taskyazure.azure-mobile.net/tables/TodoItem"; | |
UpdateUrl = "https://taskyazure.azure-mobile.net/tables/TodoItem/"; // slash on purpose | |
string MobileServiceAppId = "xxxxxxxxxxxxxxxxxxxxxxxx"; // your application key | |
void LoadTodos() | |
{ | |
WebClient client = new WebClient(); |
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
public void CompleteTransaction (SKPaymentTransaction transaction) | |
{ | |
Console.WriteLine ("CompleteTransaction " + transaction.TransactionIdentifier); | |
var productId = transaction.Payment.ProductIdentifier; | |
// Independently verify the receipt via a web request (blocking, synchronous call) | |
if (ReceiptValidation.VerificationController.SharedInstance.VerifyPurchase (transaction)) { | |
Console.WriteLine ("Verified!"); | |
// Register the purchase, so it is remembered for next time | |
FULFILL_PRODUCT (productId); |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using MonoTouch.Foundation; | |
using MonoTouch.UIKit; | |
namespace AccessImageMetadata | |
{ | |
public class Application |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using MonoTouch.Foundation; | |
using MonoTouch.UIKit; | |
namespace PickerView01 | |
{ | |
public class Application |
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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Reflection; | |
using System.Text; | |
using MonoTouch.UIKit; | |
using System.Drawing; | |
using MonoTouch.Foundation; | |
using MonoTouch.Dialog; |
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
using System; | |
using MonoTouch.UIKit; | |
using MonoTouch.Foundation; | |
namespace Clipboard { | |
public static class ClipboardHelper { | |
/// <summary> | |
/// Inserts HTML to clipboard, so you can paste into Mail.app | |
/// </summary> | |
/// <remarks> |
NewerOlder