I selected Solution Explorer and nothing changed, could not see PresentationFramework.
Is it possible that when I selected the type of framework that I selected one that does not support this type of code.
It has been some time since I started this project and I think I chose Windows Forms Application.