我正在WPF工作的主要目的是允许编辑并因此在其上打印带有吉他和弦的歌曲歌词.
即使你不玩任何乐器,你可能已经看过和弦.为了给你一个想法,它看起来像这样:
E E6
I know I stand in line until you
E E6 F#m B F#m B
think you have the time to spend an evening with me
Run Code Online (Sandbox Code Playgroud)
但是我不想使用这种丑陋的单行间距字体,而是希望Times New Roman字体与歌词和和弦(粗体字的和弦)进行字距调整.我希望用户能够编辑它.
这似乎不是支持的方案RichTextBox.这些是我不知道如何解决的一些问题:
TextPointer是歌词行).当用户编辑歌词时,我希望和弦保持在正确的角色上.例:.
E E6
I know !!!SOME TEXT REPLACED HERE!!! in line until you
Run Code Online (Sandbox Code Playgroud)
.
E E6
think you have the time to spend an
F#m B F#m B
evening with me
Run Code Online (Sandbox Code Playgroud)
.
F#m E6
...you have the ti …Run Code Online (Sandbox Code Playgroud)