Added support for using enums.
Merge pull request #494 from gumme/WpfDesignerEnumFix

Added support for using enums.