2 // Copyright (c) Microsoft Corporation. All rights reserved.
5 namespace System.Activities.Presentation.Validation
7 using System.Activities.Presentation.Model;
8 using System.Collections.Generic;
10 // ValidationService is responsible for locating the ModelItem containing the violating activities
11 // Individual activity designers can register their ValidationErrorLocator to refine the source
12 // (e.g.) StateMachine can use this extensibility point to provide error on state level.
13 internal interface IValidationErrorSourceLocator
15 List<object> FindSourceDetailFromActivity(Activity errorSource, object errorSourceDetail);
17 void ReplaceParentChainWithSource(Activity parentActivity, List<object> parentChain);