fixed #377
This commit is contained in:
1 parent
12689384a5
commit
3eb802d4e3
1 file changed
+4
-6
@@ -79,12 +79,11 @@ namespace HandyControl.Tools.Extension
|
||||
_isInternalAction = true;
|
||||
SetLangBinding(element, targetProperty, keyBinding.Path, element.DataContext);
|
||||
_isInternalAction = false;
|
||||
return element.GetValue(targetProperty);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
SetTargetProperty(element, targetProperty);
|
||||
element.DataContextChanged += LangExtension_DataContextChanged;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
@@ -95,12 +94,11 @@ namespace HandyControl.Tools.Extension
|
||||
_isInternalAction = true;
|
||||
SetLangBinding(element, targetProperty, keyBinding.Path, element.DataContext);
|
||||
_isInternalAction = false;
|
||||
return element.GetValue(targetProperty);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
SetTargetProperty(element, targetProperty);
|
||||
element.DataContextChanged += LangExtension_DataContextChanged;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user