Property value updation not displayed
-
In the code of a WPF custom control, I am updating Property1 in the Set{} of another Property2(i.e. when another property changes). the Property1 is updated properly, but the updated value is not diaplayed in the Property Dialog Box of Visual studio. How can I get the updated value diaplyed in Property dialog box.
public string ControlID { get { return controlid; } set { controlid = value; Propertytoupdate = value; // This Property is //not updated //in Property dilaog even // though value of // Propertytoupdate gets // updated } }
-
In the code of a WPF custom control, I am updating Property1 in the Set{} of another Property2(i.e. when another property changes). the Property1 is updated properly, but the updated value is not diaplayed in the Property Dialog Box of Visual studio. How can I get the updated value diaplyed in Property dialog box.
public string ControlID { get { return controlid; } set { controlid = value; Propertytoupdate = value; // This Property is //not updated //in Property dilaog even // though value of // Propertytoupdate gets // updated } }
One thing you need to do is implement INotifyPropertyChanged, and have the change notification raised when the property changes.
Deja View - the feeling that you've seen this post before.