private void ColorButton_Checked(object sender, RoutedEventArgs e)
        {
            AriInkRadioButton button = sender as AriInkRadioButton;

            if (button == null)
            {
                return;
            }

            //switch (button.Ink.ToString())
            //{
            //    case "Black":
            //        Telemetry.ApplicationLogger.Instance.SubmitButtonClickEvent(Telemetry.EventName.BlackColorToggle, Telemetry.ViewName.EditorSideNavigation);
            //        break;
            //    case "Red":
            //        Telemetry.ApplicationLogger.Instance.SubmitButtonClickEvent(Telemetry.EventName.RedColorToggle, Telemetry.ViewName.EditorSideNavigation);
            //        break;
            //    case "Orange":
            //        Telemetry.ApplicationLogger.Instance.SubmitButtonClickEvent(Telemetry.EventName.YellowColorToggle, Telemetry.ViewName.EditorSideNavigation);
            //        break;
            //    case "Green":
            //        Telemetry.ApplicationLogger.Instance.SubmitButtonClickEvent(Telemetry.EventName.GreenColorToggle, Telemetry.ViewName.EditorSideNavigation);
            //        break;
            //    case "Blue":
            //        Telemetry.ApplicationLogger.Instance.SubmitButtonClickEvent(Telemetry.EventName.BlueColorToggle, Telemetry.ViewName.EditorSideNavigation);
            //        break;
            //}

            lastCheckedInkButton = button;

            SetInkColor(button);
        }
        private void SetInkColor(AriInkRadioButton button)
        {
            var brush = button.Ink as SolidColorBrush;
            var model = DataContext as SnipInsightViewModel;

            if (brush == null)
            {
                //Diagnostics.LogTrace("Fail to set ink color. brush is null");
                return;
            }

            if (model == null)
            {
                return;
            }

            model.InkDrawingAttributes.Color         = brush.Color;
            model.InkDrawingAttributes.Width         = lastCheckedPenSize;
            model.InkDrawingAttributes.Height        = lastCheckedPenSize;
            model.InkDrawingAttributes.IsHighlighter = false;
            model.InkDrawingAttributes.StylusTip     = System.Windows.Ink.StylusTip.Ellipse;
            model.InkModeRequested = InkCanvasEditingMode.Ink;
        }
        private void PenButton_Click(object sender, RoutedEventArgs e)
        {
            if (lastCheckedInkButton == null)
            {
                lastCheckedInkButton = BlackColorButton;
            }

            SnipInsightViewModel model = DataContext as SnipInsightViewModel;

            if (model == null)
            {
                return;
            }

            if (model.penSelected)
            {
                PenPalettePopup.IsOpen = true;
            }
            else
            {
                model.penSelected = true;
                SetInkColor(lastCheckedInkButton);
            }
        }