1

我知道這是可能的結合使用像這樣的explictily實現的屬性:綁定到一個顯式實現通用接口在Silverlight

"{Binding Path=(local:ISomeInterface.SomeProperty)}" 

但如果界面是什麼通用?

"{Binding Path=(local:ISomeInterface<TypeParama>.SomeProperty)}" ??? 

什麼是神奇的語法?

回答

0

我不知道語法綁定到一個通用的接口,但是,如果你需要圍繞一個快速的工作,你可以簡單地封裝你的財產,即:

public int SomePropertyYouCanBindTo 
    { 
    get 
     { 
     return (this as ISomeInterface<TypeParameter>).SomeProperty; 
..... etc