AvaloniaUI / Avalonia

Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The most popular .NET UI client technology
https://avaloniaui.net
MIT License
26.18k stars 2.27k forks source link

Logical Operators on Binding #3666

Open nopara73 opened 4 years ago

nopara73 commented 4 years ago

I can add to a xaml element this: IsVisible="{Binding IsSomething}".

And I can negate it too: IsVisible="{Binding !IsSomething}".

I was wondering if it's possible to use other logical operators, other than negation.

grokys commented 4 years ago

This would indeed be useful, and I've talked about it a little in #1362 in terms of conditionals. The syntax I suggested in that issue isn't great though, and the reaction hasn't been that positive...

I guess we could start by deciding what logical operators we'd like.