Skip to content

Instantly share code, notes, and snippets.

View rmenezes's full-sized avatar

Raul Menezes rmenezes

View GitHub Profile
@rmenezes
rmenezes / BehaviorBase{T}.cs
Created January 13, 2017 15:55 — forked from dansiegel/BehaviorBase{T}.cs
Prism Tabbed Navigation
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 )
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;