Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

Binding an attached property? RSS

3 replies

Last post Aug 06, 2008 10:22 AM by raguirre

(0)
  • FBrink

    FBrink

    Member

    22 Points

    37 Posts

    Binding an attached property?

    Jul 31, 2008 02:10 PM | LINK

    Is it possible to databind an attached property to a custom class?

     

    /Flemming Brink

     

    binding

  • sladapter

    sladapter

    All-Star

    43607 Points

    7907 Posts

    Re: Binding an attached property?

    Jul 31, 2008 03:21 PM | LINK

    Why not? In the following thread we were discussing DataBinding. Kbalz was trying to bind Point data to the Canvas.Left and Canvas.Top attached properties of a rectangle. We have no problem doing that. So I do not see why we can not databind to attached property to a custom class.

    http://silverlight.net/forums/t/21632.aspx

    Sally Xu
    Software Engineer
    Aprimo, Inc

    Please remember to mark the replies as answers if they answered your question
  • FBrink

    FBrink

    Member

    22 Points

    37 Posts

    Re: Binding an attached property?

    Aug 01, 2008 08:27 AM | LINK

    Thanks for the help – I got it to work nicely now.  

    /Flemming Brink

  • raguirre

    raguirre

    Member

    109 Points

    56 Posts

    Re: Binding an attached property?

    Aug 06, 2008 10:22 AM | LINK

    Hi dude, is it also possible to do template binding on an attached property?