Skip to content

Instantly share code, notes, and snippets.

View cbalioglu's full-sized avatar

Can Balioglu cbalioglu

View GitHub Profile
@cbalioglu
cbalioglu / ICommunicationObjectExtensions.cs
Created March 17, 2015 17:31
An extension method for ICommunicationObject derived WCF types that enables exception-safe disposal.
using System;
using System.ServiceModel;
namespace Balioglu
{
public static class ICommunicationObjectExtensions
{
/// <summary>
/// Closes or aborts the specified communication object depending on its state without
/// throwing an exception.
@cbalioglu
cbalioglu / PasswordBoxBehavior.cs
Last active June 13, 2024 11:49
An Expression Blend behavior for WPF that enables binding to the Password property of the PasswordBox control.
using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Interactivity;
namespace Balioglu
{
// USAGE:
//