In my application built on MVVM architecture using C# & WPF, I'm using the RadWindow to prompt the user to enter the filename with Ok & Cancel options.
I want to be able to enable/disable OR visible/invisible the OK button on the basis of user input.
Ex: Filename entered -> Ok button enabled/visible
Filename empty -> Ok button disabled/invisible.
How can I acheive this behavior?
The Telerik
RadPromptwindow has a customTemplatewhich contains aTextBoxand twoButtons. To enable or disable theButtonbased on the input of theTextBox, you can add aBindingto theIsEnabledproperty of the OKButton: