This is a migrated thread and some comments may be shown as answers.

Xaml TextBox Text binding code make it common

0 Answers 36 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
dotnetavalanche
Top achievements
Rank 1
dotnetavalanche asked on 04 Jun 2016, 11:40 AM
We have big WPF application with multiple screen. Each screen have multiple textboxes.

We have used MVVM pattern so textboxes are bound to VM using like:
{Binding Name,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}

In Most of the textboxes BUT not all, we want to set Delay Property to some value say 500 like:

{Binding Name,Delay=500,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}

Rather than setting this on each textbox xaml line is there some shorter way to handle this?

something like Style.xaml etc?
These changes are applicable for most of the textboxes but not all....

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
dotnetavalanche
Top achievements
Rank 1
Share this question
or