fix: Make GroupManagerMap an Attached dp
It always should have been attached (analagous to a static prop)
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user