Skip to content

Instantly share code, notes, and snippets.

@dotMorten
dotMorten / NewClasses
Created October 1, 2014 19:10
New Windows 10 APIs
Windows.ApplicationModel.Activation.FileOpenPickerContinuationEventArgs
Windows.ApplicationModel.Activation.FileSavePickerContinuationEventArgs
Windows.ApplicationModel.Activation.FolderPickerContinuationEventArgs
Windows.ApplicationModel.Activation.IContinuationActivatedEventArgs
Windows.ApplicationModel.Activation.IFileOpenPickerContinuationEventArgs
Windows.ApplicationModel.Activation.IFileSavePickerContinuationEventArgs
Windows.ApplicationModel.Activation.IFolderPickerContinuationEventArgs
Windows.ApplicationModel.Activation.IWebAccountProviderActivatedEventArgs
Windows.ApplicationModel.Activation.IWebAccountProviderContinuationEventArgs
Windows.ApplicationModel.Activation.WebAccountProviderActivatedEventArgs
@topgenorth
topgenorth / Google Play Services client library Terms And Conditions
Last active December 16, 2015 15:29
Package Description Google Play services, revision 4 By Google Inc. Google Play Services client library and sample code Install path: extras/google/google_play_services
Package Description
Google Play services, revision 4
By Google Inc.
Google Play Services client library and sample code
Install path: extras/google/google_play_services
@clairernovotny
clairernovotny / CollectionViewSourceFactory.cs
Last active February 17, 2017 10:32
Pattern to use collection views in a portable class library with WPF and WinRT XAML. The issue is that while WPF and WinRT both have the CollectionView concepts, they're in different namespaces, so you can't use them in a PCL ViewModel. This wrapper allows you to wrap a collection view source and manipulate it in a PCL for navigation, etc. This …
// These classes would go in your PCL
public interface IWrappedCollectionView
{
bool MoveCurrentTo(object item);
bool MoveCurrentToPosition(int position);
bool IsCurrentAfterLast { get; }
bool MoveCurrentToFirst();
bool IsCurrentBeforeFirst { get; }
bool MoveCurrentToLast();
@deapsquatter
deapsquatter / MvxBindableGroupListAdaptor
Created January 31, 2013 11:11
Show a list with group headers similar to iOS UITableView with Sections. To use bind ItemsSource to an IEnumerable containing items that implement IEnumerable.
using System;
using Cirrious.MvvmCross.Binding.Droid.Views;
using System.Linq;
using Android.Content;
using System.Collections.Generic;
using System.Collections;
using System.Collections.Specialized;
namespace Cirrious.MvvmCross.Binding.Droid.Views
{
@prashantvc
prashantvc / UIViewToImage.cs
Last active December 11, 2015 20:39
Extension method to convert UIView to UIImage
public static class Extensions
{
public static UIImage ToImage (this UIView view)
{
RectangleF canvasRect = view.Bounds;
UIGraphics.BeginImageContextWithOptions (canvasRect.Size, false, 0.0f);
CGContext ctx = UIGraphics.GetCurrentContext ();
ctx.FillRect (canvasRect);
view.Layer.RenderInContext (ctx);
@Redth
Redth / CodeShareReport.cs
Created November 27, 2012 18:05 — forked from praeclarum/CodeShareReport.cs
Computes the code share stats for the iCircuit project
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using System.IO;
namespace CodeShareReport
{
class App
using System;
using ClanceysLib;
using MonoTouch.UIKit;
using MonoTouch.Foundation;
using System.Threading;
using MonoTouch.ObjCRuntime;
using System.Drawing;
using MonoTouch.CoreGraphics;
using System.Linq;
namespace Clanceylib
@Alphapage
Alphapage / Page_VideoRecorderView.axml
Created October 24, 2012 12:25
Basic Video Recorder control in monodroid MvvmCross (add to Tutorial.UI sample and navigate to the ViewModel)
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:local="http://schemas.android.com/apk/res/Tutorial.UI.Droid"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
>
<include
android:id="@+id/videoRecorder"
@grumpydev
grumpydev / AppDomain.cs
Created September 22, 2011 13:29
Small class to work around AppDomain not existing in WinRT - allows enumeration of assemblies in the package -http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/6e8d015b-4c3b-4e1a-9884-d986ba5935c0/
private sealed class AppDomain
{
public static AppDomain CurrentDomain { get; private set; }
static AppDomain()
{
CurrentDomain = new AppDomain();
}
public Assembly[] GetAssemblies()