Hiding the mouse pointer

Topics: Windows 8 Xaml
Mar 6, 2013 at 10:11 AM
Is there a way to ensure the mouse pointer removes itself like the player controls do after a few seconds, or is this a known issue outside of the player framework's control?
Coordinator
Mar 18, 2013 at 7:59 PM
This is not handled out of the box by the player framework. However, you can easily add code to hide/show. For example:
CoreCursor defaultCursor;

public MainPage()
{
    this.InitializeComponent();
    player.IsInteractiveChanged += player_IsInteractiveChanged;
    defaultCursor = Window.Current.CoreWindow.PointerCursor;
    Window.Current.CoreWindow.PointerCursor = null;
}

void player_IsInteractiveChanged(object sender, RoutedEventArgs e)
{
    if (player.IsInteractive)
    {
        Window.Current.CoreWindow.PointerCursor = defaultCursor;
    }
    else
    {
        Window.Current.CoreWindow.PointerCursor = null;
    }
}