38 references to IsValid
PresentationCore (38)
MS\Internal\Ink\Lasso.cs (7)
334System.Diagnostics.Debug.Assert(!crossing.IsEmpty && crossing.StartNode.IsValid && crossing.EndNode.IsValid); 337System.Diagnostics.Debug.Assert(!mcrossing.IsEmpty && mcrossing.StartNode.IsValid && mcrossing.EndNode.IsValid); 344System.Diagnostics.Debug.Assert(!mcrossing.IsEmpty && mcrossing.StartNode.IsValid && mcrossing.EndNode.IsValid); 557System.Diagnostics.Debug.Assert(strokeNode.IsValid);
MS\Internal\Ink\StrokeNode.cs (20)
82internal bool IsEllipse { get { return IsValid && _operations.IsNodeShapeEllipse; } } 95return IsValid ? _operations.GetNodeBounds(_thisNode) : Rect.Empty; 104return IsValid ? Rect.Union(_operations.GetNodeBounds(_thisNode), ConnectingQuad.Bounds) : Rect.Empty; 112if (IsValid) 123if (IsValid) 134if (IsValid) 192if (IsValid) 317if (IsValid) 425if (IsValid && previous.IsValid) 847if (!IsValid || !hitNode.IsValid) 865if ((!IsValid) || (!hitNode.IsValid)) 888if (!IsValid) 915System.Diagnostics.Debug.Assert(IsValid && (_index >= 0)); 946System.Diagnostics.Debug.Assert(IsValid); 1000System.Diagnostics.Debug.Assert(IsValid); 1018System.Diagnostics.Debug.Assert(IsValid); 1036System.Diagnostics.Debug.Assert(IsValid);
MS\Internal\Ink\StrokeRenderer.cs (11)
70System.Diagnostics.Debug.Assert(strokeNode.IsValid); 266if (!prevPrevStrokeNode.IsValid) 268if (prevStrokeNode.IsValid) 284if (!prevStrokeNode.IsValid) 286if (strokeNode.IsValid) 358if (!strokeNode.IsValid) 615if (prevPrevStrokeNode.IsValid) 617if (prevStrokeNode.IsValid) 624Debug.Assert(!strokeNode.IsValid); 677else if (prevStrokeNode.IsValid && strokeNode.IsValid)