diff --git a/Documentation/input/reference/api/loadsoundfont.cshtml b/Documentation/input/reference/api/loadsoundfont.cshtml
index c9050cad4..3b719ac83 100644
--- a/Documentation/input/reference/api/loadsoundfont.cshtml
+++ b/Documentation/input/reference/api/loadsoundfont.cshtml
@@ -9,7 +9,8 @@ Since: 0.9.4
Description
- This function initiates a load of the soundfont using the given data. The supported data types is depending on the platform. AlphaTab only supports SoundFont2 encoded soundfonts for loading.
+ This function initiates a load of the soundfont using the given data. The supported data types is depending on the platform. AlphaTab only supports SoundFont2 encoded soundfonts for loading. To load a soundfont the player must be enabled in advance.
+
Signatures
diff --git a/Source/AlphaTab.CSharp/Platform/CSharp/ManagedUiFacade.cs b/Source/AlphaTab.CSharp/Platform/CSharp/ManagedUiFacade.cs
index 02c9c4375..9bde2fa7c 100644
--- a/Source/AlphaTab.CSharp/Platform/CSharp/ManagedUiFacade.cs
+++ b/Source/AlphaTab.CSharp/Platform/CSharp/ManagedUiFacade.cs
@@ -85,6 +85,7 @@ public virtual void InitialRender()
protected abstract void RenderTracks();
public abstract void BeginAppendRenderResults(RenderFinishedEventArgs renderResults);
+ public abstract void DestroyCursors();
public abstract Cursors CreateCursors();
public abstract void BeginInvoke(Action action);
public abstract void RemoveHighlights();
diff --git a/Source/AlphaTab.CSharp/Platform/CSharp/WinForms/WinFormsUiFacade.cs b/Source/AlphaTab.CSharp/Platform/CSharp/WinForms/WinFormsUiFacade.cs
index 7c37b7bb8..f5265a56a 100644
--- a/Source/AlphaTab.CSharp/Platform/CSharp/WinForms/WinFormsUiFacade.cs
+++ b/Source/AlphaTab.CSharp/Platform/CSharp/WinForms/WinFormsUiFacade.cs
@@ -194,6 +194,10 @@ public override void BeginAppendRenderResults(RenderFinishedEventArgs r)
}
+ public override void DestroyCursors()
+ {
+ }
+
public override Cursors CreateCursors()
{
// no cursors for winforms, why? - It lacks of proper transparency support
diff --git a/Source/AlphaTab.CSharp/Platform/CSharp/Wpf/WpfUiFacade.cs b/Source/AlphaTab.CSharp/Platform/CSharp/Wpf/WpfUiFacade.cs
index 67abfc6c7..8d567ff7a 100644
--- a/Source/AlphaTab.CSharp/Platform/CSharp/Wpf/WpfUiFacade.cs
+++ b/Source/AlphaTab.CSharp/Platform/CSharp/Wpf/WpfUiFacade.cs
@@ -2,6 +2,7 @@
using System;
using System.Collections.Concurrent;
using System.IO;
+using System.Linq;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
@@ -191,10 +192,20 @@ public override void BeginAppendRenderResults(RenderFinishedEventArgs r)
r);
}
+ public override void DestroyCursors()
+ {
+ var element = (Panel)((FrameworkElementContainer)Api.CanvasElement).Control.Parent;
+ var cursors = element.Children.OfType