fix: Make GroupManagerMap an Attached dp

It always should have been attached (analagous to a static prop)
This commit is contained in:
John Colvin committed 2022-05-25 14:19:03 -04:00
1 parent 9199594756
commit 9434f61030
1 file changed
+4 -1
@@ -20,7 +20,10 @@ namespace mbts.ui.controls {
#region GroupManagerMap
public static readonly DependencyProperty GroupManagerMapProperty =
DependencyProperty.Register("GroupManagerMap", typeof(RadioButtonGroupManagerMap), typeof(RadioButtonGroupManagerMap),
DependencyProperty.RegisterAttached(
"GroupManagerMap",
typeof(RadioButtonGroupManagerMap),
typeof(RadioButtonGroupManagerMap),
new PropertyMetadata((d, e) => {
var k = GetGroupKey(d);
if (e.OldValue is RadioButtonGroupManagerMap old_man) old_man._leave(d, k);