Skip to content

Instantly share code, notes, and snippets.

@slightfoot
slightfoot / list_notifier.dart
Last active September 7, 2023 19:21
List Notifier - 07/10/2020
// MIT License
//
// Copyright (c) 2020 Simon Lightfoot & Scott Stoll
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@LanceMcCarthy
LanceMcCarthy / ThemeModel.cs
Created September 22, 2016 20:38
Custom Themeing model for Xamarin Forms' DynamicResource
[DataContract]
public class ThemeModel : INotifyPropertyChanged
{
private Color backgroundColor;
private Color textColor;
private Color buttonBackgroundColor;
private Color buttonTextColor;
private Color accentColor;
private Color headerColor;
@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:

@HugoGresse
HugoGresse / 1 DynamicExoPlayer
Last active September 5, 2018 03:42
ExoPlayer implementation with a persisten TextureView & SurfaceTexture among context
import android.annotation.TargetApi;
import android.content.Context;
import android.graphics.Color;
import android.graphics.SurfaceTexture;
import android.os.Build;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.Surface;
import android.view.TextureView;
@anaisbetts
anaisbetts / TabbedRoutedViewHost.cs
Created December 15, 2014 10:49
Tabbed-view compatible RoutedViewHost
using System;
using Xamarin.Forms;
using Splat;
using ReactiveUI;
using System.Reactive.Linq;
using System.Reactive.Threading.Tasks;
using System.Diagnostics;
namespace ReactiveUI.XamForms
{