How to clean the field (Textbox) form. I try to use the MVP pattern there is a filter form and there are many fields in it. Next to the field there is a field clear button. Where to register the logic of cleaning properties associated with the field? If done through the Presenter, it will be a bunch of events, is this normal?

  • If the action is related only to the state of the controls in View and is not related to the data from the model, for example, clearing the textbox, selecting all the text in the textbox when it receives focus, and so on, then this should be done in the View itself, i.e. in the codebehind. - Bulson

0