private void Refresh() { var p = GetParent(ParentAnchor) ?? GetParent(this) ?? MainWindow.Instance; if (p != null) { InputGestureText = ShortcutManager.GetGestureStr(p, AlephAction); } else { InputGestureText = "?"; } }