void OnPenColorChanged(object sender, Windows.UI.Xaml.RoutedEventArgs e) { // Use button's background to set new pen's color var btnSender = sender as Windows.UI.Xaml.Controls.Button; var brush = btnSender.Background as Windows.UI.Xaml.Media.SolidColorBrush; drawingAttributes.Color = brush.Color; inkManager.SetDefaultDrawingAttributes(drawingAttributes); }
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); }