How can we improve the Windows dev platform?

CalcBinding for UWP

CalcBinding is an advanced Binding markup extension that allows you to write calculated binding expressions in XAML, without custom converters. CalcBinding can automatically perform bool to visibility conversion, inverse your expression and more. CalcBinding makes binding expressions shorter and more user-friendly.

This is only available for WPF - https://github.com/Alex141/CalcBinding

Here are some examples

<Label Content="{c:Binding A+B+C }" />

<Label Content="{c:Binding A*0.5+(B.NestedProp1/C - B.NestedProp2 % C) }" />

<Button Background="{c:Binding '(A > B ? media:Brushes.LightBlue : media:Brushes.White)'}"/>

<TextBox Text="{c:Binding 'Math.Sin(Math.Cos(A))'}"/>

<Button Visibility="{c:Binding !IsChecked}" />

<c:Binding 'A and B or C' />

12 votes
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    Vijay Nirmal shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    0 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base