Controls and Forms both have buttons and because of both using statements, your code doesn't know which one you are refereeing too.. declare your button specifically with one or other..
private Systems.Windows.Controls.Button exampleButton = new System.Windows.Controls.Button();
Leave a comment: