public static void SelectAll(this Windows.UI.Input.Inking.InkManager inkManager) { foreach (var stroke in inkManager.GetStrokes()) { stroke.Selected = true; } }
public static void ClearSelection(this Windows.UI.Input.Inking.InkManager inkManager) { foreach (var stroke in inkManager.GetStrokes()) { stroke.Selected = false; } }
public Scenario1() { this.InitializeComponent(); rootPage.NotifyUser(" ", SDKTemplate.NotifyType.StatusMessage); // Initialize drawing attributes. These are used in inking mode. drawingAttributes = new Windows.UI.Input.Inking.InkDrawingAttributes(); drawingAttributes.Color = Windows.UI.Colors.Red; double penSize = 2 + 2*PenThickness.SelectedIndex; drawingAttributes.Size = new Windows.Foundation.Size(penSize, penSize); drawingAttributes.IgnorePressure = true; drawingAttributes.FitToCurve = true; // Initialize lasso attributes. These are used in selection mode. lassoAttributes = new Windows.UI.Input.Inking.InkDrawingAttributes(); lassoAttributes.Color = Windows.UI.Colors.Goldenrod; lassoAttributes.PenTip = Windows.UI.Input.Inking.PenTipShape.Circle; lassoAttributes.Size = new Windows.Foundation.Size(0.5f, 0.5f); // Create the InkManager and set the drawing attributes inkManager = new Windows.UI.Input.Inking.InkManager(); inkManager.SetDefaultDrawingAttributes(drawingAttributes); renderer = new Rendering.XamlInkRenderer(InkingArea); }
public Scenario1() { //print from here ;()2:;(); #;(); #:;-;: @()2;:;();-;();();See.();records();2(); "set up git f- TWFWSW TFW TWFS TFS();"(); 1 line. 2 netx. ;()!!!!! @!!!!! this.InitializeComponent(); rootPage.NotifyUser(" ", SDKTemplate.NotifyType.StatusMessage); // Initialize drawing attributes. These are used in inking mode. drawingAttributes = new Windows.UI.Input.Inking.InkDrawingAttributes(); drawingAttributes.Color = Windows.UI.Colors.Red; double penSize = 2 + 2 * PenThickness.SelectedIndex; drawingAttributes.Size = new Windows.Foundation.Size(penSize, penSize); drawingAttributes.IgnorePressure = true; drawingAttributes.FitToCurve = true; // Initialize lasso attributes. These are used in selection mode. lassoAttributes = new Windows.UI.Input.Inking.InkDrawingAttributes(); lassoAttributes.Color = Windows.UI.Colors.Goldenrod; lassoAttributes.PenTip = Windows.UI.Input.Inking.PenTipShape.Circle; lassoAttributes.Size = new Windows.Foundation.Size(0.5f, 0.5f); // Create the InkManager and set the drawing attributes inkManager = new Windows.UI.Input.Inking.InkManager(); inkManager.SetDefaultDrawingAttributes(drawingAttributes); renderer = new Rendering.XamlInkRenderer(InkingArea); }
public Scenario1() { this.InitializeComponent(); rootPage.NotifyUser(" ", SDKTemplate.NotifyType.StatusMessage); // Initialize drawing attributes. These are used in inking mode. drawingAttributes = new Windows.UI.Input.Inking.InkDrawingAttributes(); drawingAttributes.Color = Windows.UI.Colors.Red; double penSize = 2 + 2 * PenThickness.SelectedIndex; drawingAttributes.Size = new Windows.Foundation.Size(penSize, penSize); drawingAttributes.IgnorePressure = true; drawingAttributes.FitToCurve = true; // Initialize lasso attributes. These are used in selection mode. lassoAttributes = new Windows.UI.Input.Inking.InkDrawingAttributes(); lassoAttributes.Color = Windows.UI.Colors.Goldenrod; lassoAttributes.PenTip = Windows.UI.Input.Inking.PenTipShape.Circle; lassoAttributes.Size = new Windows.Foundation.Size(0.5f, 0.5f); // Create the InkManager and set the drawing attributes inkManager = new Windows.UI.Input.Inking.InkManager(); inkManager.SetDefaultDrawingAttributes(drawingAttributes); renderer = new Rendering.XamlInkRenderer(InkingArea); }
public static bool AnySelected(this Windows.UI.Input.Inking.InkManager inkManager) { foreach (var stroke in inkManager.GetStrokes()) { if (stroke.Selected) { return(true); } } return(false); }
public static void DeleteAll(this Windows.UI.Input.Inking.InkManager inkManager) { inkManager.SelectAll(); inkManager.DeleteSelected(); }