Is it possible to bind to specific explicit interface members?
287 views
Skip to first unread message
Bill Kempf
unread,
Aug 5, 2008, 4:30:18 PM8/5/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to wpf-di...@googlegroups.com
Is there binding path syntax to handle this? A more specific question. Say we have some object that implements several interfaces. Two of the interfaces have identical indexer signatures, with one or both explicitly implemented to allow compilation. Now we want to bind to one of the indexers. Is it possible to specify which one using a simple binding expression, or will we have to resort to using a converter here?
-- Quidquid latine dictum sit, altum sonatur. - Whatever is said in Latin sounds profound.
War is peace. Freedom is slavery. Bugs are features.
Josh Smith
unread,
Aug 5, 2008, 4:41:18 PM8/5/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to wpf-di...@googlegroups.com
Yes you can Bill, as seen below:
Prop="{Binding Path=(local:IFoo.Bar)}"
Josh
Bill Kempf
unread,
Aug 5, 2008, 4:44:44 PM8/5/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to wpf-di...@googlegroups.com
So attached property syntax is used for this? Where's that documented :).
Thanks.
Josh Smith
unread,
Aug 5, 2008, 4:45:37 PM8/5/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message