-
June 3rd, 2016, 11:52 AM
#1
Xaml TextBox Text binding code make it common
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 box 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....
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|