You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When changing value from inherited to the default one, control doesn't raise any property changed events.
To Reproduce
Steps to reproduce the behavior:
In ValueStoreTests_Inheritance.cs
[Fact]publicvoidChild_Notifies_About_Setting_Back_To_Default_Value(){varparent=newClass1();varchild=newClass1();parent.Foo="changed";child.Parent=parent;boolraised=false;child.PropertyChanged+=(_,args)=>{raised=args.Property==Class1.FooProperty&&args.GetNewValue<string>()=="foodefault";};Assert.Equal("changed",child.Foo);// inherited from parent.child.Foo="foodefault";// reset back to default.Assert.True(raised);// expect event to be raised, as actual value was changed.}
Expected behavior
Control notifies about changing its value from inherited to the default.
Desktop (please complete the following information):
Describe the bug
When changing value from inherited to the default one, control doesn't raise any property changed events.
To Reproduce
Steps to reproduce the behavior:
In ValueStoreTests_Inheritance.cs
Expected behavior
Control notifies about changing its value from inherited to the default.
Desktop (please complete the following information):
Additional context
Reported here #10201 (comment)
The text was updated successfully, but these errors were encountered: