Unable to bind with any property of UserControl

Posted by Agha Khan on Stack Overflow See other posts from Stack Overflow or by Agha Khan
Published on 2010-05-08T05:26:31Z Indexed on 2010/05/08 5:28 UTC
Read the original article Hit count: 217

Filed under:

I looked your answer where I was also using this.DataContext=this. I am unable to convince myself why I have to remove it? But I did

In my UserControl control I have 6 int properties (RedCount, GreenCount …) I am using .NET 3.5 and basically I wanted to use StringFormat with Binding. In my xaml file I have 6 Labels with I would like to bind, and I did what exactly you told in last reply. For some strange reasons it didn’t work.

I don't know why it does not work. I placed break point in converter where I never hit it. This imples Binding failed.

© Stack Overflow or respective owner

Related posts about bindings