System.windows.data.binding converter
Converter Property Reference Is this page helpful? Please rate your experience Yes No. Any additional feedback? Namespace: Windows. Submit and view feedback for This product This page. Silverlight Developer Center.
Sign in. United States English. Home Library Learn Downloads Forums. Ask a question. Quick access. Search related threads. Remove From My Forums. Privacy policy. To convert data during binding, you must create a class that implements the IValueConverter interface, which includes the Convert and ConvertBack methods. The following example shows the implementation of a date converter that converts the date value passed in so that it only shows the year, the month, and the day.
When implementing the IValueConverter interface, it is a good practice to decorate the implementation with a ValueConversionAttribute attribute to indicate to development tools the data types involved in the conversion, as in the following example:.
The problem solved : — DEN. Just a note on ProvideValue. For value converters, you usually inherit from markup-extension to ease the way you use converters. Add a comment. Active Oldest Votes. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog.
0コメント