DataBinding in TriggerActions

1 view
Skip to first unread message

Mike Brown

unread,
Apr 6, 2009, 1:31:05 PM4/6/09
to wpf-di...@googlegroups.com
I keep running into roadblocks with my custom behaviors--actually trigger actions. At first I thought it was due to a limitation of Element to Element binding. But now have come to a realization it is a limitation of the TriggerAction. It would appear that TriggerActions don't support Binding. I declared a DP on my trigger action and attempted to bind it to a value on my view model like so
 
<custom:MyTriggerAction SomeDP="{Binding SomeVMProperty}"/>
 
Unfortunately, I get a XamlParseException
{System.Windows.Markup.XamlParseException: AG_E_PARSER_BAD_PROPERTY_VALUE [Line: 26 Position: 80]
   at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
   at Acfs.Agility.Ria.Views.LoginView.InitializeComponent()
   at Acfs.Agility.Ria.Views.LoginView..ctor()}
 
Line 26 Position 80 is the start of the Binding declaration. My quick question: Is this a bug? Or is this by design?
I'm really hoping for the former because that severely limits the capabilities of TriggerActions.
Reply all
Reply to author
Forward
0 new messages