コード例 #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
ファイル: IncrementalHitTester.cs プロジェクト: JianwenSun/cc
 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();
     }
 }
コード例 #3
0
 protected virtual new void OnDrawingAttributesReplaced(DrawingAttributesReplacedEventArgs e)
 {
 }
コード例 #4
0
ファイル: Stroke.cs プロジェクト: sjyanxin/WPFSource
 /// <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
ファイル: InkCanvas.cs プロジェクト: zhuangfangwang/ise
		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)
 {
 }