Binding from code to a custom attached property in WinRT/UWP

前端 未结 2 853
清歌不尽
清歌不尽 2021-02-06 10:10

I\'m trying to create a binding from code in a library that targets multiple frameworks (WPF, WinRT, UWP etc), and I\'m hitting a brick wall. The property I\'m trying to bind to

相关标签:
2条回答
  • 2021-02-06 10:50

    It looks as though there may be a solution here, which involves using XamlReader.Load and a resource dictionary containing the binding, to get the loader to do the work for you.

    How can I bind to a custom attached property in c# from code behind in a windows store app?

    0 讨论(0)
  • 2021-02-06 11:05

    Good question, after researching and discussing we've confirmed that in UWP, we cannot programmatically binding to custom attached property. Sadly.

    You may submit a request to add this new features for development through the Windows Feedback tool.

    0 讨论(0)
提交回复
热议问题