Skip to content

Instantly share code, notes, and snippets.

Avatar

Raul Menezes rmenezes

View GitHub Profile
@rmenezes
rmenezes / BehaviorBase{T}.cs
Created Jan 13, 2017 — forked from dansiegel/BehaviorBase{T}.cs
Prism Tabbed Navigation
View BehaviorBase{T}.cs
public class BehaviorBase<T> : Behavior<T> where T : BindableObject
{
public T AssociatedObject { get; private set; }
protected override void OnAttachedTo( T bindable )
{
base.OnAttachedTo( bindable );
AssociatedObject = bindable;
if( bindable.BindingContext != null )
View ContentPageRenderer.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using Xamarin.Forms;
using Xamarin.Forms.Platform.iOS;
using UIKit;
using MyAppName.iOS.Renderers;
@rmenezes
rmenezes / OnPageChangeListener.cs
Last active Aug 29, 2015
Implementação da interface IOnPageChangeListener (C# implementation of IOnPageChangeListener)
View OnPageChangeListener.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
@rmenezes
rmenezes / FacebookCallback.cs
Last active Jan 14, 2016
FacebookCallBack Sample for Xamarin.Android
View FacebookCallback.cs
using System;
using Xamarin.Facebook;
using CupcakeStore.Android.Activities;
using Xamarin.Facebook.Login;
using Android.Runtime;
namespace CupcakeStore.Android
{
public class FacebookCallback<TResult> : Java.Lang.Object, IFacebookCallback
where TResult : Java.Lang.Object