private void addCommentSegmentButton_Clicked(object sender, EventArgs e)
{
if (segmentButtonCanvas.Visibility == Visibility.Collapsed)
return;
commentSegment();
Canvas.SetZIndex(segmentButtonCanvas, oldButtonZIndex);
segmentButtonCanvas.Visibility = Visibility.Collapsed;
oldCommentBoxIndex = Canvas.GetZIndex(commentBox);
Canvas.SetZIndex(commentBox, Canvas.GetZIndex(blackBack) + 1);
//fixSegmentIndices();
Canvas.SetZIndex(commentButtonCanvas, Canvas.GetZIndex(blackBack) + 1);
commentButtonCanvas.Visibility = Visibility.Visible;
}