Skip to content

Commit 51b52cb

Browse files
authored
Merge pull request #475 from xzqsr/master
PropertyGrid Bug Fix: when an enum is changed, PropertyChanged EventArgs returns the enum type, which should be the enum variable name.
2 parents 49242e4 + b500529 commit 51b52cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Myra/Graphics2D/UI/Properties/PropertyGrid.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ private ComboView CreateEnumEditor(Record record, bool hasSetter)
687687
if (cv.SelectedIndex != -1)
688688
{
689689
SetValue(record, _object, cv.SelectedItem.Tag);
690-
FireChanged(enumType.Name);
690+
FireChanged(record.Name);
691691
}
692692
};
693693
}
@@ -1472,4 +1472,4 @@ public void ApplyPropertyGridStyle(TreeStyle style)
14721472
PropertyGridStyle = style;
14731473
}
14741474
}
1475-
}
1475+
}

0 commit comments

Comments
 (0)