need to write musical symbols to my C# WPF application. Found Symbola font, that contains them and can write the symbols in XAML. But I need to add them frome code behinde. - For importing font to my app I used https://stackoverflow.com/a/39912794/10985932 - In XAML I can write symbols to TextBlock or Label by this:
<TextBlock x:Name="myTextBlock" Text="𝄚" FontFamily="{StaticResource Symbola}" FontSize="50.0" FontStyle="Normal" FontWeight="Regular"/>
<Label x:Name="lab" Content="𝄚" FontFamily="{StaticResource Symbola}" FontSize="50"></Label>
But don't know how to change Text or Content from code behinde. Tried to search, hoping using Application.Current.Resources["Symbola"]
could help, but dont know how to access concrete "char" in this font.
Thanks for any help.