Hi,
My question is conceptually simple but seems not working in the xaml Question: I have two usercontrols in my mainPage.
My requirement is, In the mainpage, i am using two usercontorls, usercontrol1 is textblock and usercontrol2 is button. In the Usercontrol2.xaml.cs, I have a Button_Click event which gets some value(say ID)as a property from an xml file.
In the Usercontrol1.xaml.cs, I have a textblock that displays the ID. Requirement is When i click the button ,the button click event raises, fetches ID from xml and display that in a Textblock.
For this, I am doing Custom Property binding to my usercontrols. But when i bind the property to the textblock for id, the xaml is not taking the value of the property from usercontrol2.
say:
Note: target PropertyID is a dependencey property in Usercontrol1.xaml.cs
Is there any good method to implement the property binding to usercontrols in xaml.???