Action.Target string

Topics: Conventions
Dec 13, 2012 at 6:27 PM

In the docs, it states the following about using a string value in an Action.Target:

Action.Target – Sets both the Action.Target property and the DataContext property to the specified instance. String values are used to resolve an instance from the IoC container.

I am trying to get this to work but can't find a sample of it.  For example:

<Button cal:Action.Target="TestClass"
                Content="Click Me">


In other words, in my bootstrapper, I add an instance of TestClass and I want to be able to call TestMethod on it.


Dec 14, 2012 at 2:46 PM

Nevermind this question - I found some examples of this.