<p>Let's take a very simple example:</p>

<ul>
<li>In my window1.xaml, i have a label
control named 'lblProduct'.</li>
<li>In my window1.xaml.cs, i have a
public method called
CalculateProduct(Int Var1, Int
Var2).  CalculateProduct will, as
you may have guessed, calculate the
product of the variables passed in.</li>
</ul>

<p>I'd like to simply bind the results of 'CalculateProduct' to my label.  My actual use case is a little more complicated than this. However, if I could get this up and running not only would I be quite happy, I'd be able to figure out the rest.</p>

<p>I've seen interesting examples using the ObjectDataProvider to bind to a static method of a new class.  While this is well and good, I don't feel the need to create a new class when I've already instantiated the one for my window.  In addition, there may be other global variables that I'd like to take advantage of in my Window1 class.</p>

<p>Thanks for your time and help,</p>

<p>Abel.</p>

```
ObjectDataProvider
```
has an
```
ObjectInstance
```
property that you can assign your Window instance to.