private void load(ILyricEditorState state) { state.BindableCaretPosition.BindValueChanged(e => { Lyric = e.NewValue?.Lyric; if (e.OldValue?.Lyric != null) { TextTags.UnbindFrom(e.OldValue.Lyric.RomajiTagsBindable); } if (e.NewValue?.Lyric != null) { TextTags.BindTo(e.NewValue.Lyric.RomajiTagsBindable); } }); }