I have created a control and placed that control on the page. Created a dependency property like below:
public Test CtrlTest{ get {return (Test)GetValue(CtrlTestProperty);} set { SetValue(CtrlTestProperty, value);} } public static readonly DependencyProperty CtrlTestProperty= DependencyProperty.Register("CtrlTest", typeof(Test), typeof(Nameofcontrl), null); where test is the poco entity.Now i have binded the dependency property in Xaml code.like
<TextBox x:Name="testbox" Text="{Binding CtrlTest.ABD,Mode=TwoWay}"/>; But while i m updating the depency property on the control as below
CtrlTest.abc="dfgfdgfd"; CtrlTest.cdf=""; It will not update the bindings in XAML.
Can anyone help me regarding this.
When I will take the local property on the page and bind that, it will updating smothly.
But not Entity.
Thanks in Advance.............
No comments:
Post a Comment
Send us your comment related to the topic mentioned on the blog