private void variable_TXT_TextChanged(object sender, TextChangedEventArgs e) { TextBox txt = (TextBox)sender; if (ParentSnapshot != null) ParentSnapshot.Link = txt.Text; if (txt.IsKeyboardFocused || txt.IsMouseCaptured) { SettingChanged?.Invoke(); } }