Skip to main content

Posts

Featured

WPF Bind a combobox to an enumeration

I've often found myself needing to bind a combo box to an enumeration I've created. You can do this in WPF but it's a bit complicated. You end up needing to create a static resource. I had mine in a user control. First the enumeration I was using:

namespace XmlCoderBI.Enums { /// <summary> /// An enumeration that represents the type of conversion we're doing /// </summary> public enum ConversionType { /// <summary> /// The binary /// </summary> [Description( "Binary" )] Binary = 0, /// <summary> /// The base64 /// </summary> [Description( "Binary" )] Base64 = 1, /// <summary> /// The hexadecimal /// </summary> [Description( "Hexadecimal" )] Hexadecimal = 2, /// <summary> /// The UTF-8 /// </summary> [Description( "…

Latest Posts

C# async and await

C# Updated on Threading with .net 4

C# parse invalid XML characters

using jqGrid in an MVC View

jqGrid get data from MVC Controller

Kendo UI grid update row using Javascript/jQuery

ASP.net MVC dynamically create and return image from Controller

ASP.net MVC Ajax.BeginForm with busy icon

MFC getting the current date and time

ASP.NET dynamically load AJAX toolkit accordion panes