in my xaml file i have 5 buttons i want to disable all except one
how i can do this
note : my Buttons in three StackPanels so i can't use this answer question
this code give me compile error
foreach (Control ctrl in this.Controls)
ctrl.Enabled = false;
CancelButton.Enabled = true;