Bind a buttons' content property (Al) - 5/31/2007 1:14 AM PST RRS feed

  • Question

  • By: Al

    There's probably a simple answer to this, I just can't seem to figure it 
    out!? I have a class with a property and have declared and instantiated an 
    instance of it in my xaml pages' code behind. I have a button on my xaml page 
    and need to make the 'content' property of the button show the value of my 
    objects property. 
    I can think of two potential way of doing this; binding the buttons' 
    property to the objects' property, or by creating a trigger to update the 
    buttons' property (maybe using a seperate animated timeline?) when the 
    objects' property is updated.
    My issue with both of these methods is that I can't see the object in my 
    code behind from the data binding section, or the wizard section.
    Any help or suggestions would be great.
    Tuesday, February 19, 2008 11:36 PM