[NUI] Sync Xaml code to newest (#795)
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / XamlBinding / IValueConverter.cs
1 using System;
2 using System.Globalization;
3 using System.ComponentModel;
4
5 namespace Tizen.NUI.Binding
6 {
7     /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
8     [EditorBrowsable(EditorBrowsableState.Never)]
9     public interface IValueConverter
10     {
11         /// <summary>
12         /// Converts a value.
13         /// </summary>
14         /// <param name="value">The value produced by the binding source.</param>
15         /// <param name="targetType">The type of the binding target property.</param>
16         /// <param name="parameter">The converter parameter to use.</param>
17         /// <param name="culture">The culture to use in the converter.</param>
18         /// <returns>A converted value. If the method returns null, the valid null value is used.</returns>
19         object Convert(object value, Type targetType, object parameter, CultureInfo culture);
20
21         /// <summary>
22         /// Converts a value.
23         /// </summary>
24         /// <param name="value">The value that is produced by the binding target.</param>
25         /// <param name="targetType">The type to convert to.</param>
26         /// <param name="parameter">The converter parameter to use.</param>
27         /// <param name="culture">The culture to use in the converter.</param>
28         /// <returns>A converted value. If the method returns null, the valid null value is used.</returns>>
29         object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture);
30     }
31 }