VisualFind is used to search the Visual Tree of the Silverlight Application.
It provides a rich set of API to do rich search.
Inheritance Hierarchy
ArtOfTest.CommonTreeCrawlerFrameworkElement, XamlFindExpression, XamlFindClause
ArtOfTest.WebAii.SilverlightVisualFind
Namespace: ArtOfTest.WebAii.Silverlight
Assembly: ArtOfTest.WebAii (in ArtOfTest.WebAii.dll) Version: 2018.1.116.0 (2018.1.116.0)
Syntax
public sealed class VisualFind : TreeCrawler<FrameworkElement, XamlFindExpression, XamlFindClause>
The VisualFind type exposes the following members.
Properties
Name | Description | |
---|---|---|
LastUsedExpression |
The last FindExpression used by this Crawler.
(Inherited from TreeCrawlerT, V, R.) | |
OwnerApp |
Gets the owner app of this Find object.
| |
SearchRoot |
Gets the Search Root for this FrameworkElement
(Overrides TreeCrawlerT, V, RSearchRoot.) | |
Strategy |
Gets or sets the find strategy to use when searching for elements in the
VisualTree
| |
WaitOnElementsTimeout |
Gets or sets the time out to use when Strategy=AlwaysWaitForElementsVisible
|
Methods
Name | Description | |
---|---|---|
AllByAutomationId(String) |
Finds all controls with a given automation id
| |
AllByAutomationId(String, String) | ||
AllByAutomationIdT(String) | ||
AllByCustom(PredicateFrameworkElement) | ||
AllByCustom(T, PredicateT, Boolean) |
Find all matches that match custom search logic
(Inherited from TreeCrawlerT, V, R.) | |
AllByExpression(XamlFindExpression) |
Finds all the elements in the tree that match the find expression.
(Overrides TreeCrawlerT, V, RAllByExpression(V).) | |
AllByExpression(T, V) |
Finds all the elements in the tree that match the find expression.
(Inherited from TreeCrawlerT, V, R.) | |
AllByName(String) | ||
AllByName(String, String) | ||
AllByNameT(String) | ||
AllByTextContent | ||
AllByType(String) | ||
AllByTypeT | ||
ByAutomationId(String) |
Search the Visual Tree for an element with a certain automation ID
| |
ByAutomationId(String, Boolean) | ||
ByAutomationIdT(String) |
Search the Visual Tree for an element with a certain automation ID and return it as a strongly-typed control
| |
ByBaseTypeT |
Finds the first element of type or null if no element is matching the criteria.
If interface type searches for all types inheriting the specified one.
Else, behaves like standard ByType method.
| |
ByCustom(PredicateFrameworkElement) |
Find using custom logic.
| |
ByCustom(T, PredicateT, Boolean) |
Find using custom logic.
(Inherited from TreeCrawlerT, V, R.) | |
ByExpression(V) |
Finds the first element in the tree that matches the find expression.
(Inherited from TreeCrawlerT, V, R.) | |
ByExpression(T, V) |
Finds the first element in the tree that matches the find expression.
(Inherited from TreeCrawlerT, V, R.) | |
ByExpression(XamlFindExpression, Boolean) |
Finds the first element in the tree that matches the find expression. It doesn't wait an element to be populated, returns immediately.
(Overrides TreeCrawlerT, V, RByExpression(V, Boolean).) | |
ByExpression(T, V, Boolean) |
Finds the first element in the tree that matches the find expression.
(Inherited from TreeCrawlerT, V, R.) | |
ByExpressionReturnOrThrow(XamlFindExpression) |
Finds the first element in the tree that matches the find expression.
It respects the find strategy so can wait an element to be populated according to the timeout.
| |
ByExpressionReturnOrThrow(XamlFindExpression, Boolean) |
Finds the first element in the tree that matches the find expression.
It respects the find strategy so can wait an element to be populated according to the timeout.
| |
ByName(String) |
Search the Visual Tree with an element with a certain name.
| |
ByNameT(String) |
Return the element with specified name as the desired type.
| |
ByTextContent |
Return the element that contain the specified text.
| |
ByType(String) |
Find the first control of type defined
| |
ByTypeT |
Find the first control of certain type.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
FindUsingExpressionPath |
Find an element using expression paths starting at startNode.
(Inherited from TreeCrawlerT, V, R.) | |
FindUsingHierarchicalClause | (Overrides TreeCrawlerT, V, RFindUsingHierarchicalClause(T, R).) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
RefreshRoot |
Refresh the visual tree this VisualFind object searches
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
See Also