Table of Contents

Method FindElement

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

FindElement(string)

Recursively searches all child elements for an element with the specified name, and throws an exception if the requested element is not found.

public FrameworkElement FindElement(string name)

Parameters

name string

The name of the element to be found.

Returns

FrameworkElement

The requested element. If no element with the provided name was found, an exception is thrown.

Exceptions

InvalidOperationException

A element with the provided name was found.