38 references to IsValid
PresentationCore (38)
MS\Internal\Ink\Lasso.cs (7)
335System.Diagnostics.Debug.Assert(!crossing.IsEmpty && crossing.StartNode.IsValid && crossing.EndNode.IsValid); 338System.Diagnostics.Debug.Assert(!mcrossing.IsEmpty && mcrossing.StartNode.IsValid && mcrossing.EndNode.IsValid); 345System.Diagnostics.Debug.Assert(!mcrossing.IsEmpty && mcrossing.StartNode.IsValid && mcrossing.EndNode.IsValid); 558System.Diagnostics.Debug.Assert(strokeNode.IsValid);
MS\Internal\Ink\StrokeNode.cs (20)
83internal bool IsEllipse { get { return IsValid && _operations.IsNodeShapeEllipse; } } 96return IsValid ? _operations.GetNodeBounds(_thisNode) : Rect.Empty; 105return IsValid ? Rect.Union(_operations.GetNodeBounds(_thisNode), ConnectingQuad.Bounds) : Rect.Empty; 113if (IsValid) 124if (IsValid) 135if (IsValid) 193if (IsValid) 318if (IsValid) 426if (IsValid && previous.IsValid) 848if (!IsValid || !hitNode.IsValid) 866if ((IsValid == false) || (hitNode.IsValid == false)) 889if (IsValid == false) 916System.Diagnostics.Debug.Assert(IsValid && (_index >= 0)); 947System.Diagnostics.Debug.Assert(IsValid); 1001System.Diagnostics.Debug.Assert(IsValid); 1019System.Diagnostics.Debug.Assert(IsValid); 1037System.Diagnostics.Debug.Assert(IsValid);
MS\Internal\Ink\StrokeRenderer.cs (11)
71System.Diagnostics.Debug.Assert(true == strokeNode.IsValid); 267if (!prevPrevStrokeNode.IsValid) 269if (prevStrokeNode.IsValid) 285if (!prevStrokeNode.IsValid) 287if (strokeNode.IsValid) 359if (!strokeNode.IsValid) 616if (prevPrevStrokeNode.IsValid) 618if (prevStrokeNode.IsValid) 625Debug.Assert(!strokeNode.IsValid); 678else if (prevStrokeNode.IsValid && strokeNode.IsValid)