public void UpdateStrokeStyle(bool fitToCurve, Color brushColor, Size brushSize, bool displayText) { BrushColor = brushColor; BrushSize = brushSize; BrushFitsToCurve = fitToCurve; DisplayText = displayText; var newAttributes = new InkDrawingAttributes { FitToCurve = _brushFitsToCurve, Color = _brushColor, Size = _brushSize }; InkStrokeManager.SetDefaultDrawingAttributes(newAttributes); }
public DrawingAttributes(Color brushColor, Size brushSize, bool brushFitsToCurve, [Optional] IEnumerable <Color> activePaletteColors) { _brushColor = brushColor; _brushSize = brushSize; _brushFitsToCurve = brushFitsToCurve; _displayText = false; SheetMusic = new SheetMusic(); var newAttributes = new InkDrawingAttributes { FitToCurve = _brushFitsToCurve, Color = _brushColor, Size = _brushSize }; InkStrokeManager.SetDefaultDrawingAttributes(newAttributes); }