in UWP-Advanced-Inking/XAMLShapesAdvancedManipulations/XAMLShapesAdvancedManipulations/MainPage.xaml.cs [232:243]
public void UnselectActiveLine()
{
if (activeLine.line != null
&& activeLine.AnchorOrigin != null
&& activeLine.AnchorEnd != null)
{
activeLine.line.Stroke = new SolidColorBrush(Windows.UI.Colors.Green);
activeLine.line.StrokeThickness = 6;
ShapesCanvas.Children.Remove(activeLine.AnchorOrigin);
ShapesCanvas.Children.Remove(activeLine.AnchorEnd);
}
}