diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-06-20 13:35:36 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-06-20 13:35:36 +0300 |
| commit | 38bcc2e34655298d9c1f21c84888a346b501bd48 (patch) | |
| tree | 1ae9eb7ccf000952d85c77d923389cc531635325 /Software/Visual_Studio/Tango.SharedUI/Converters | |
| parent | f8f1f96b814391df201b1d8e1ef06c531233ef5c (diff) | |
| download | Tango-38bcc2e34655298d9c1f21c84888a346b501bd48.tar.gz Tango-38bcc2e34655298d9c1f21c84888a346b501bd48.zip | |
Completed Touch ComboBox with selected item position.
Implemented ScrollToElement on LightTouchScrollViewer.
Diffstat (limited to 'Software/Visual_Studio/Tango.SharedUI/Converters')
| -rw-r--r-- | Software/Visual_Studio/Tango.SharedUI/Converters/IsEqualConverter.cs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.SharedUI/Converters/IsEqualConverter.cs b/Software/Visual_Studio/Tango.SharedUI/Converters/IsEqualConverter.cs new file mode 100644 index 000000000..4d3563681 --- /dev/null +++ b/Software/Visual_Studio/Tango.SharedUI/Converters/IsEqualConverter.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Data; + +namespace Tango.SharedUI.Converters +{ + public class IsEqualConverter : IMultiValueConverter + { + public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) + { + if (values != null && values.Length > 0) + { + return values.All(x => x == values.First()); + } + + return false; + } + + public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture) + { + throw new NotImplementedException(); + } + } +} |
