Browse Source
* Add tests for binding negation operator. Expected results come from 11.0.x branch. * Unset and null need to be distinct. Also remove `ExpressionNode.Reset` as it was doing unneeded stuff and should just be the same as `SetSource(AvaloniaProperty.UnsetValue, null);`. * Make ExpressionNode.OnSourceChanged accept null. The previous design assumed that a source of `null` was an invalid input to all types of expression nodes. It turned out that there was a single exception to this rule: the `!` operator can in fact operate on a null value. With this new design we instead have to explicitly check for a null value in every override of `OnSourceChanged ` except in `LogicalNotNode`. Due to this change, we also have to distinguish between `null` and `(unset)` in `ExpressionNode.SetSource` as well. Fixes #16071 * Fix comment.pull/16134/head
committed by
GitHub
22 changed files with 214 additions and 49 deletions
Loading…
Reference in new issue