Open ffquintella opened 1 month ago
An update ... this behavior is related to the ConvertBack function. For some reason it is being called when it shouldn't
Can you try nightly?
There is any nupkg avaliable or a must compile ?
Nightlies are available via NuGet with a custom package source (and with include prerelease checked), please check here for instructions: https://github.com/AvaloniaUI/Avalonia/wiki/Using-nightly-build-feed
Besides that, what was the exact version that worked previously for you?
11.1.3 worked I will get the Nightlies today and tell you
The error persists on 11.2.0 (nightly). I found a work around that is to implement the ConvertBack funtion ... but this shouldn't be needed
Describe the bug
A custom converter is being called 2 times while using on a data grid.
The first call is with the actual value and the second with a null value. This behavior started with the last upgrade.
(the converter call)
(the converter code)
public class TeamIdToTeamNameConverter: IValueConverter { public object? Convert(object? value, Type targetType, object? parameter, CultureInfo culture) { //if (value is null) return "-"; if (value is null) throw new InvalidParameterException("teamId","Invalid null team id to convert");
}
To Reproduce
Create a datagrid with a list and a custom converter and check
Expected behavior
The converter should only be called once with the actual value. The null value is coming from no where.
Avalonia version
11.1.4
OS
No response
Additional context
No response