locked
IDynamicMetaObjectProvider

    Question

  • I have an object in a portable class library which implements IDynamicMetaObjectProvider.  I wish to consume this object via XAML bindings in both WPF and a Windows Store app.  The implementation is based on this article, http://msdn.microsoft.com/en-US/vstudio/ff800651.aspx, and has been working brilliantly in WPF for some time.  However, in the Windows Store app I'm getting nowhere; IDynamicMetaObjectProvider.GetMetaObject is never called.  The XAML binding is looking on the correct object but just gives me a 'BindingExpression path error: 'Effort' property not found' message.  Any suggestions?  Is there a Windows Store sample that shows this working?
    Tuesday, February 18, 2014 6:42 PM

All replies

  • Hi,

    Would mind sharing a simple project to SkyDrive so that we can test it.

    Best Wishes!


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to &quot;Mark as Answer&quot; the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Thursday, February 20, 2014 2:46 AM
  • Hi Anne,

    Here's a link to a sample project:-

    https://onedrive.live.com/redir?resid=2AC1EE8580AD5CA4!6994&authkey=!AFBqX2HA9tRII64&ithint=folder%2c.sln

    It couldn't be simpler so I suspect this is something that was never implemented in the WinRT binding engine and that it never checks for IDynamicMetaObjectProvider.

    In which case, could you let me know how I might implement dynamic properties that can be bound in XAML?

    Many thanks

    --Michael

    Thursday, February 20, 2014 12:36 PM
  • I've updated the project and added tests for DynamicObject (doesn't work), ExpandoObject and Indexing.

    https://onedrive.live.com/redir?resid=2AC1EE8580AD5CA4!7100&authkey=!ALceaMkJ8c7PRYI&ithint=folder%2c.sln

    The initial binding to an ExpandoObject works but the bindings aren't then listening for PropertyChanged events.  Indexing works but is not what I want.

    ExpandoObject implements IDynamicMetaObjectProvider so what is going on?

    --Michael

    Thursday, February 20, 2014 7:32 PM
  • Hi there, 

    Unfortunately debugging your code is beyond the scope of a forum post. Please feel free to open a support incident. Please go here: http://aka.ms/storesupport.

    Regards,

    Jenny 

    Wednesday, March 5, 2014 8:31 AM