void OnClear(object sender, Windows.UI.Xaml.RoutedEventArgs e)
        {
            rootPage.NotifyUser(" ", SDKTemplate.NotifyType.StatusMessage);

            pointerId = -1;

            if (inkManager.AnySelected())
            {
                inkManager.DeleteSelected();

                // We don't know what has been erased so we clear the render
                // and add back all the ink saved in the ink manager
                renderer.Clear();
                renderer.AddInk(inkManager.GetStrokes());

                // There is no selection - disable movement
                AnchorSelection();
            }
            else
            {
                inkManager.DeleteAll();
                renderer.Clear();
            }
        }
 public static void DeleteAll(this Windows.UI.Input.Inking.InkManager inkManager)
 {
     inkManager.SelectAll();
     inkManager.DeleteSelected();
 }