Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
0
Reply
Binding and Converter via IValueConverter
guenter Alzinger
Mar 2 2016 6:45 AM
338
Reply
In a binding you can use the property Converter to provide a specific converter class, inherited from IValueConverter, to it.
My question is know, if it is somehow possible to create a user control like
public class MyTextBox : TextBox, IValueConverter
and assign this, i.e. the textbox itself, to the Converter property in the Binding expression.
Example:
<MyTextBox... Text="{Binding Path=Price, Mode=TwoWay, Converter={RelativeSource Self}}"... />
Thx a lot for your support.
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
How to Get List Of Applications in Window.
How to change the dynamic resource in the Button Click