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

前端 未结 2 854
清歌不尽
清歌不尽 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?

提交回复
热议问题