Skip to content

Instantly share code, notes, and snippets.

@jkhk
jkhk / gist:3095967
Created July 12, 2012 05:08
WeakEvents demo with Rx
using System;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.Reactive;
using System.Reactive.Linq;
namespace WeakEvents
{
internal class Program
{
@jkhk
jkhk / NonTopmostPopup.cs
Created July 5, 2012 11:59 — forked from flq/NonTopmostPopup.cs
WPF: Popup that is only topmost with respect to parent window. Taken from the comments at http://chriscavanagh.wordpress.com/2008/08/13/non-topmost-wpf-popup/ (Joe Gershgorin) which was in not easy to digest state. Specific for popup and Windows Forms hos
using System;
using System.Runtime.InteropServices;
using System.Windows;
using System.Windows.Controls.Primitives;
using System.Windows.Forms;
@jkhk
jkhk / gist:245263
Created November 30, 2009 05:00
YesNoConverter - Boolean converted for strings
using System;
using System.ComponentModel;
using JoeK.Resources;
namespace JoeK.Converters
{
public class YesNoConverter : BooleanConverter
{
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
{