How can we improve the Windows dev platform?

Compilation of {x:Bind} to static fields fails if no other bindings exist to the code-behind class

If you attempt to x:Bind to a property on a static field of a class with mode OneWay or TwoWay, the generated binding code does not compile if there are no other bindings to the code-behind class.

Compilation fails with error CS1061 in MainPage.g.cs: "MainPage.MainPage_obj1_Bindings" does not contain a definition for "bindingsTracking" and no extension method "bindingsTracking" accepting a first argument of type "MainPage.MainPage_obj1_Bindings" could be found.

I describe the problem in more detail here: https://developercommunity.visualstudio.com/content/problem/56832/compilation-of-xbind-to-static-fields-fails-if-no.html

5 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

    Chrysler shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    8 comments

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

      Feedback and Knowledge Base