View Issue Details

IDProjectCategoryView StatusLast Update
0001579NoesisGUIUnitypublic2021-05-11 16:40
ReporterFeldruebe Assigned Tosfernandez  
PrioritynormalSeveritytweak 
Status assignedResolutionopen 
Product Version2.2.5 
Target Version3.1 
Summary0001579: Combining MarkupExtension and IValueConverter crashes Unity
Description

If you are combining a MarkupExtension and an IValueConverter Unity crashes when using the converter.

Steps To Reproduce

Use the following converter in an xaml.

public class EnumMatchToVisibilityConverter : MarkupExtension, IValueConverter
{
public int Test { get; set; }

    public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
    {
        if (value is int && parameter is int)
        {
            return (int)value == (int)parameter ? Visibility.Visible : Visibility.Collapsed;
        }

        return Binding.DoNothing;
    }

    public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
    {
        throw new NotImplementedException();
    }
}
PlatformAndroid

Relationships

duplicate of 0001975 assignedsfernandez Can't create MarkupExtension that implements IValueConverter 

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2019-11-02 13:14 Feldruebe New Issue
2019-11-02 13:14 Feldruebe Tag Attached: Unity
2021-05-11 16:40 sfernandez Relationship added duplicate of 0001975
2021-05-11 16:40 sfernandez Assigned To => sfernandez
2021-05-11 16:40 sfernandez Status new => assigned
2021-05-11 16:40 sfernandez Target Version => 3.1
2025-10-10 13:29 jsantos Category Unity3D => Unity