I suggest you ...

XAML Boolean Expressions

It would be easier in XAML to do some tasks like hide or show an element if we could use boolean expressions in the bindings. For example to show an TextBox if a list has element with something like: <TextBox isEnabled="myList.length > 0"/>.

Now we have to create a new property and bind it to the textBox is enabled field. In some languages like AngularJS it is really simple: <input ng-show="myList.Length>0"></input>

Thank you

3 votes
Vote
Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
You have left! (?) (thinking…)
Carlos shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

1 comment

Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
Submitting...
  • Clifford Nelson commented  ·   ·  Flag as inappropriate

    <TextBox isEnabled="{Binding myList, Conversion='x=&gt;x.Length&gt;0'"/>

    Would of course be nice to really use the > symbol since easier to type and more obvious, but that is a limitation of XML

Feedback and Knowledge Base