예제 #1
0
파일: Stroke.cs 프로젝트: dox0/DotNet471RS3
 /// <summary>
 /// Protected virtual version for developers deriving from InkCanvas.
 /// This method is what actually throws the event.
 /// </summary>
 /// <param name="e">DrawingAttributesReplacedEventArgs to raise the event with</param>
 protected virtual void OnDrawingAttributesReplaced(DrawingAttributesReplacedEventArgs e)
 {
     if (e == null)
     {
         throw new ArgumentNullException("e");
     }
     if (null != this.DrawingAttributesReplaced)
     {
         DrawingAttributesReplaced(this, e);
     }
 }
예제 #2
0
 private void OnDrawingAttributesReplaced(Object sender, DrawingAttributesReplacedEventArgs args)
 {
     // If the drawing attributes change involves Width, Height, StylusTipTransform, IgnorePressure, or FitToCurve,
     // we need to invalidate
     if (false == DrawingAttributes.GeometricallyEqual(args.NewDrawingAttributes, args.PreviousDrawingAttributes))
     {
         Invalidate();
     }
 }
 protected virtual new void OnDrawingAttributesReplaced(DrawingAttributesReplacedEventArgs e)
 {
 }
예제 #4
0
 /// <summary>
 /// Protected virtual version for developers deriving from InkCanvas. 
 /// This method is what actually throws the event.
 /// </summary> 
 /// <param name="e">DrawingAttributesReplacedEventArgs to raise the event with</param> 
 protected virtual void OnDrawingAttributesReplaced(DrawingAttributesReplacedEventArgs e)
 { 
     if (e == null)
     {
         throw new ArgumentNullException("e");
     } 
     if (null != this.DrawingAttributesReplaced)
     { 
         DrawingAttributesReplaced(this, e); 
     }
 } 
예제 #5
0
		protected virtual void OnDefaultDrawingAttributesReplaced(object sender, DrawingAttributesReplacedEventArgs e)
		{
			DrawingAttributesReplacedEventHandler handler = DefaultDrawingAttributesReplaced;
			if (handler != null)
				handler(this, e);
		}
예제 #6
0
 private void announceDrawingAttributesChanged(object sender, DrawingAttributesReplacedEventArgs e)
 {
     Commands.ActualReportDrawingAttributes.ExecuteAsync(this.DefaultDrawingAttributes);
 }
예제 #7
0
 protected virtual new void OnDrawingAttributesReplaced(DrawingAttributesReplacedEventArgs e)
 {
 }