Skip to content

Instantly share code, notes, and snippets.

View nmilcoff's full-sized avatar

nmilcoff nmilcoff

View GitHub Profile
@fedemkr
fedemkr / ImageAsCheckboxBehavior.cs
Created October 8, 2018 18:13
Xamarin forms behavior so any Image can act as a checkbox with two states which images can be set.
using Xamarin.Forms;
namespace MyNamespace.Forms.UI.Behaviors
{
public class ImageAsCheckboxBehavior : Behavior<Image>
{
// Members
private TapGestureRecognizer tapGestureRecognizer;
// Bindable properties
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using MvvmCross.Binding.Attributes;
using MvvmCross.Core.ViewModels;
using MvvmCross.Platform.WeakSubscription;
using UIKit;
namespace MvvmCross.StackView
{
@roubachof
roubachof / AnchorBottomSheetBehavior.DragCallback.cs
Last active May 12, 2019 19:07
Xamarin Android - Google maps bottom sheet behavior, a BottomSheetBehavior with an added state - Xamarin port of google BottomSheetStyle
using System;
using Android.Support.V4.View;
using Android.Support.V4.Widget;
using Android.Views;
using Debug = System.Diagnostics.Debug;
namespace SillyCompany
{
public enum AnchorBottomSheetState
@JonDouglas
JonDouglas / xamarinandroidbindings.md
Last active March 12, 2024 10:36
Xamarin Android Bindings Troubleshooting

Approaching a Xamarin.Android Bindings Case

1. Investigation

One of the best ways to investigate a problematic Xamarin.Android Binding is to first ensure you have the proper tooling available: