The desired scenario can be easily implemented by modifying the default Prompt ControlTemplate in order to disable the Ok Button if the TextBox is empty using ValueConverter. And you can also remove the Cancel Button and the Close Button, so the user will be only able to press Ok if there is entered text. I have prepared a sample project which demonstrates the exact approach, note that I have used Implicit Styles
to Style the Window.
Hope this helps.
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>