diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2021-07-20 12:22:23 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2021-07-20 12:22:23 +0300 |
| commit | 2741e998e9a039e4f25e621b00483d72891840eb (patch) | |
| tree | af29762e5585c856f9657e9c6997f94b0b646d84 /Software/Visual_Studio/Tango.SharedUI | |
| parent | 2e37232fd2055ff0556c43c6f3f68e5ac427f2f6 (diff) | |
| parent | f4fc9795b21c8631451ca16e93e479bcd3872bb5 (diff) | |
| download | Tango-2741e998e9a039e4f25e621b00483d72891840eb.tar.gz Tango-2741e998e9a039e4f25e621b00483d72891840eb.zip | |
MERGE Vica changes.
Diffstat (limited to 'Software/Visual_Studio/Tango.SharedUI')
| -rw-r--r-- | Software/Visual_Studio/Tango.SharedUI/Converters/EnumToItemsSourceConverter.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.SharedUI/Converters/EnumToItemsSourceConverter.cs b/Software/Visual_Studio/Tango.SharedUI/Converters/EnumToItemsSourceConverter.cs index 5c725e524..3b9c0acab 100644 --- a/Software/Visual_Studio/Tango.SharedUI/Converters/EnumToItemsSourceConverter.cs +++ b/Software/Visual_Studio/Tango.SharedUI/Converters/EnumToItemsSourceConverter.cs @@ -37,7 +37,11 @@ namespace Tango.SharedUI.Converters public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { - throw new NotImplementedException(); + if(value is EnumValue) + { + return (value as EnumValue).Value; + } + return value; } } } |
