문제

I understand it's possible to bind to an explictily implemented property using something like this:

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

but what if the interface is generic?

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

What is the magic syntax?

도움이 되었습니까?

해결책

I don't know the syntax for binding to a generic interface but, if you need a quick work around, you could simply encapsulate your property, i.e.:

public int SomePropertyYouCanBindTo
    {
    get
        {
        return (this as ISomeInterface<TypeParameter>).SomeProperty;
..... etc
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top