Class
XamlElementContainer

Base class for containers of Silverlight elements in the Project.cs file

Definition

Constructors

XamlElementContainer(VisualFind)

Declaration

cs-api-definition
public XamlElementContainer(VisualFind find)

Parameters

find

VisualFind

Properties

EnsureClickable

Gets and sets whether to ensure elements are in a clickable region of the browser

Declaration

cs-api-definition
public bool EnsureClickable { get; set; }

Property Value

bool

Find

Gets the Find object scoped to this container.

Declaration

cs-api-definition
public VisualFind Find { get; }

Property Value

VisualFind

OwnerApp

Gets a reference of the application that owner this element.

Declaration

cs-api-definition
public IApplication OwnerApp { get; }

Property Value

IApplication

Methods

Get(XamlFindExpression)

Finds an element using a FindExpression.

Declaration

cs-api-definition
public override FrameworkElement Get(XamlFindExpression expr)

Parameters

expr

XamlFindExpression

The FindExpression<T> to use to locate the element.

Returns

FrameworkElement

The element or null if no matching element found.

Overrides ElementContainer<FrameworkElement, XamlFindExpression>.Get(XamlFindExpression)

Get<TControl>(XamlFindExpression)

Declaration

cs-api-definition
public TControl Get<TControl>(XamlFindExpression expr) where TControl : IFrameworkElement

Parameters

expr

XamlFindExpression

Returns

TControl

Get<TControl>(XamlFindExpression, bool, int)

Declaration

cs-api-definition
public TControl Get<TControl>(XamlFindExpression expr, bool waitOnElement, int timeout) where TControl : IFrameworkElement

Parameters

expr

XamlFindExpression

waitOnElement

bool

timeout

int

Returns

TControl

Get<TControl>(params string[])

Declaration

cs-api-definition
public TControl Get<TControl>(params string[] clauses) where TControl : IFrameworkElement

Parameters

clauses

string[]

Returns

TControl

GetElement(XamlFindExpression, bool, int)

Declaration

cs-api-definition
protected override FrameworkElement GetElement(XamlFindExpression expr, bool waitOnElement, int timeout)

Parameters

expr

XamlFindExpression

waitOnElement

bool

timeout

int

Returns

FrameworkElement

Overrides ElementContainer<FrameworkElement, XamlFindExpression>.GetElement(XamlFindExpression, bool, int)