Class
XamlFindClause

Holds a single clause as part of a Silverlight element FindExpression.

Definition

Namespace:ArtOfTest.WebAii.Silverlight

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
[DataContract(Namespace = "http://artoftest.com/schemas/WebAiiDesignCanvas/2.0.0")]
public class XamlFindClause : FindClause

Inheritance: objectFindClauseXamlFindClause

Inherited Members FindClause.ToString()FindClause.GetSpecialCharForCompareType(FindCompareType)FindClause.ClauseFindClause.NameFindClause.ValueFindClause.IsHierarchicalFindClause.PriorityFindClause.CompareType

Constructors

XamlFindClause()

Declaration

cs-api-definition
public XamlFindClause()

XamlFindClause(string)

Declaration

cs-api-definition
public XamlFindClause(string clause)

Parameters

clause

string

Properties

SearchType

Declaration

cs-api-definition
public XamlSearchType SearchType { get; }

Property Value

XamlSearchType

TagIndex

Declaration

cs-api-definition
public int TagIndex { get; }

Property Value

int

XamlTagName

Declaration

cs-api-definition
public string XamlTagName { get; }

Property Value

string

Methods

ExtractValue(string, ITargetElement)

Extract the actual value for the search type passed in.

Declaration

cs-api-definition
public override string ExtractValue(string searchType, ITargetElement element)

Parameters

searchType

string

The search type.

element

ITargetElement

The target element

Returns

string

The actual value

Overrides FindClause.ExtractValue(string, ITargetElement)

GenerateXamlPath(FrameworkElement)

Declaration

cs-api-definition
public string GenerateXamlPath(FrameworkElement fx)

Parameters

fx

FrameworkElement

Returns

string

GenerateXamlPath(FrameworkElement, FrameworkElement)

Declaration

cs-api-definition
public string GenerateXamlPath(FrameworkElement fx, FrameworkElement parent)

Parameters

fx

FrameworkElement

parent

FrameworkElement

Returns

string

GetTagIndexFromParent(FrameworkElement, FrameworkElement)

Given a parent and a child element, return the child index within that parent

Declaration

cs-api-definition
public static int GetTagIndexFromParent(FrameworkElement parent, FrameworkElement e)

Parameters

parent

FrameworkElement

e

FrameworkElement

Returns

int

Match(ITargetElement)

Match this expression.

Declaration

cs-api-definition
public override bool Match(ITargetElement element)

Parameters

element

ITargetElement

The element to match

Returns

bool

True/False whether the clause matches this element.

Overrides FindClause.Match(ITargetElement)

Match(ITargetElement, ITargetElement)

Match the target with this clause.

Declaration

cs-api-definition
public override bool Match(ITargetElement element, ITargetElement startElement)

Parameters

element

ITargetElement

The element to match.

startElement

ITargetElement

Element to start search at. Required for hierarchal searches

Returns

bool

Overrides FindClause.Match(ITargetElement, ITargetElement)

OnParsed()

Occurs when an clause is parsed into name value pairs including compare type.

Declaration

cs-api-definition
public override void OnParsed()

Overrides FindClause.OnParsed()