Пример #1
0
        /// <summary>
        /// Update the default drawing attributes
        /// </summary>
        /// <param name="attributes"></param>
        public void UpdateDefaultDrawingAttributes(XInkDrawingAttributes attributes)
        {
            if (attributes == null)
            {
                throw new ArgumentNullException(nameof(attributes));
            }

            lock (_defaultDrawingAttriubtes)
            {
                _defaultDrawingAttriubtes.Color = attributes.Color;
                _defaultDrawingAttriubtes.Size  = attributes.Size;
            }
        }
Пример #2
0
 /// <summary>
 /// Sets the default drawing attributes
 /// </summary>
 /// <param name="attributes"></param>
 public void SetDefaultDrawingAttributes(XInkDrawingAttributes attributes)
 {
     _attributes = attributes;
 }