skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Tools
    ThemeBuilder Design System Kit
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Free Tools
    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
    • Functional UI Testing
    • RESTful API Testing
    • Load Testing
    • Remote Test Execution
    • Agile Teams
    • Web Test Automation
    • Desktop Test Automation
    • Responsive UI Testing
    • Continuous Testing
    • Test Studio Trainings
    • Test Studio Consulting
    • Docs and Support
    • Documentation
    • Virtual Classroom
    • Videos
    • Blogs
    • Webinars
    • Whitepapers
    • Case Studies
    • Feedback Portal
    • Technical Support
    • What’s New
    • Roadmap
    • Release Notes
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Request a demo Try now

Class FrameworkElement

Inheritance
System.Object
AutomationObject<FrameworkElement>
FrameworkElement
SilverlightTestElement
WpfTestElement
GanttVirtulizedPanel
GridViewGroupPanelItem
Axis3D
BarSeries3D
GridViewGroupPanelItem
GridViewSearchPanel
PointSeries3D
SurfaceSeries3D
Inherited Members
AutomationObject<FrameworkElement>.GetProperty(AutomationProperty)
AutomationObject<FrameworkElement>.GetProperty(AutomationProperty, Object)
AutomationObject<FrameworkElement>.SetProperty(AutomationProperty, Object)
AutomationObject<FrameworkElement>.InvokeMethod(AutomationMethod, Object[])
AutomationObject<FrameworkElement>.InvokeMethod(String, Object[])
AutomationObject<FrameworkElement>.Serialize()
AutomationObject<FrameworkElement>.Deserialize(String)
AutomationObject<FrameworkElement>.Reference
AutomationObject<FrameworkElement>.PropertyBag
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ArtOfTest.WebAii.Silverlight
Assembly: ArtOfTest.WebAii.dll

Syntax

public class FrameworkElement : AutomationObject<FrameworkElement>, IAutomationPeer, IPeerConverter, IFrameworkElement, ITargetElement

Constructors

FrameworkElement()

Declaration
public FrameworkElement()

Fields

ActualHeightProperty

Declaration
public static AutomationProperty ActualHeightProperty
Field Value
AutomationProperty

ActualWidthProperty

Declaration
public static AutomationProperty ActualWidthProperty
Field Value
AutomationProperty

ClipProperty

Declaration
public static AutomationProperty ClipProperty
Field Value
AutomationProperty

DataContextProperty

Declaration
public static AutomationProperty DataContextProperty
Field Value
AutomationProperty

DesiredSizeProperty

Declaration
public static AutomationProperty DesiredSizeProperty
Field Value
AutomationProperty

HeightProperty

Declaration
public static AutomationProperty HeightProperty
Field Value
AutomationProperty

HorizontalAlignmentProperty

Declaration
public static AutomationProperty HorizontalAlignmentProperty
Field Value
AutomationProperty

IsHitTestVisibleProperty

Declaration
public static AutomationProperty IsHitTestVisibleProperty
Field Value
AutomationProperty

MarginProperty

Declaration
public static AutomationProperty MarginProperty
Field Value
AutomationProperty

MaxHeightProperty

Declaration
public static AutomationProperty MaxHeightProperty
Field Value
AutomationProperty

MaxWidthProperty

Declaration
public static AutomationProperty MaxWidthProperty
Field Value
AutomationProperty

MinHeightProperty

Declaration
public static AutomationProperty MinHeightProperty
Field Value
AutomationProperty

MinWidthProperty

Declaration
public static AutomationProperty MinWidthProperty
Field Value
AutomationProperty

NameProperty

Declaration
public static AutomationProperty NameProperty
Field Value
AutomationProperty

OpacityMaskProperty

Declaration
public static AutomationProperty OpacityMaskProperty
Field Value
AutomationProperty

OpacityProperty

Declaration
public static AutomationProperty OpacityProperty
Field Value
AutomationProperty

RenderSizeProperty

Declaration
public static AutomationProperty RenderSizeProperty
Field Value
AutomationProperty

RenderTransformOriginProperty

Declaration
public static AutomationProperty RenderTransformOriginProperty
Field Value
AutomationProperty

RenderTransformProperty

Declaration
public static AutomationProperty RenderTransformProperty
Field Value
AutomationProperty

TagProperty

Declaration
public static AutomationProperty TagProperty
Field Value
AutomationProperty

VerticalAlignmentProperty

Declaration
public static AutomationProperty VerticalAlignmentProperty
Field Value
AutomationProperty

VisibilityProperty

Declaration
public static AutomationProperty VisibilityProperty
Field Value
AutomationProperty

WidthProperty

Declaration
public static AutomationProperty WidthProperty
Field Value
AutomationProperty

Properties

AbsoluteSiblingTagIndex

Declaration
public int AbsoluteSiblingTagIndex { get; }
Property Value
System.Int32

Implements
IFrameworkElement.AbsoluteSiblingTagIndex

AbsoluteTagIndex

Declaration
public int AbsoluteTagIndex { get; }
Property Value
System.Int32

ActualHeight

Declaration
public double ActualHeight { get; }
Property Value
System.Double

Implements
IFrameworkElement.ActualHeight

ActualWidth

Declaration
public double ActualWidth { get; }
Property Value
System.Double

Implements
IFrameworkElement.ActualWidth

Application

Declaration
public IApplication Application { get; }
Property Value
IApplication

AutomationId

Declaration
public string AutomationId { get; }
Property Value
System.String

Children

Declaration
public IList<FrameworkElement> Children { get; }
Property Value
System.Collections.Generic.IList<FrameworkElement>

Clip

Declaration
public Geometry Clip { get; set; }
Property Value
Geometry

ComputedVisibility

Declaration
public virtual Visibility ComputedVisibility { get; }
Property Value
Visibility

Implements
IFrameworkElement.ComputedVisibility

Depth

Declaration
public int Depth { get; }
Property Value
System.Int32

Implements
ITargetElement.Depth

DesiredSize

Declaration
public Size DesiredSize { get; }
Property Value
Size

EnableValidateMouseLocation

Declaration
public bool EnableValidateMouseLocation { get; set; }
Property Value
System.Boolean

Find

Declaration
public VisualFind Find { get; }
Property Value
VisualFind

Implements
IFrameworkElement.Find

Height

Declaration
public double Height { get; set; }
Property Value
System.Double

HorizontalAlignment

Declaration
public HorizontalAlignment HorizontalAlignment { get; set; }
Property Value
HorizontalAlignment

Host

Declaration
public IAutomationHost Host { get; }
Property Value
IAutomationHost

Implements
ITargetElement.Host

IsHitTestVisible

Declaration
public bool IsHitTestVisible { get; set; }
Property Value
System.Boolean

IsTestRegion

Declaration
public bool IsTestRegion { get; }
Property Value
System.Boolean

Implements
ITargetElement.IsTestRegion

IsVisible

Declaration
public virtual bool IsVisible { get; }
Property Value
System.Boolean

Mappings

Declaration
public virtual MappingsCollection Mappings { get; }
Property Value
MappingsCollection

Margin

Declaration
public Thickness Margin { get; set; }
Property Value
Thickness

MaxHeight

Declaration
public double MaxHeight { get; set; }
Property Value
System.Double

MaxWidth

Declaration
public double MaxWidth { get; set; }
Property Value
System.Double

MinHeight

Declaration
public double MinHeight { get; set; }
Property Value
System.Double

MinWidth

Declaration
public double MinWidth { get; set; }
Property Value
System.Double

Name

Declaration
public string Name { get; }
Property Value
System.String

Implements
IFrameworkElement.Name

Opacity

Declaration
public double Opacity { get; set; }
Property Value
System.Double

OpacityMask

Declaration
public Brush OpacityMask { get; set; }
Property Value
Brush

ParsedElement

Declaration
public ParsedElement ParsedElement { get; }
Property Value
ParsedElement

Implements
ITargetElement.ParsedElement

RenderSize

Declaration
public Size RenderSize { get; }
Property Value
Size

RenderTransform

Declaration
public Transform RenderTransform { get; set; }
Property Value
Transform

RenderTransformOrigin

Declaration
public Point RenderTransformOrigin { get; set; }
Property Value
Point

TagNameIndex

Declaration
public int TagNameIndex { get; }
Property Value
System.Int32

TechnologyType

Declaration
public virtual TechnologyType TechnologyType { get; }
Property Value
TechnologyType

Implements
ITargetElement.TechnologyType

Text

Declaration
public virtual string Text { get; }
Property Value
System.String

Implements
IFrameworkElement.Text

TextBlockContent

Declaration
public string TextBlockContent { get; }
Property Value
System.String

Implements
IFrameworkElement.TextBlockContent

TextLiteralContent

Declaration
public string TextLiteralContent { get; }
Property Value
System.String

Implements
IFrameworkElement.TextLiteralContent

ToolTipText

Declaration
public virtual string ToolTipText { get; }
Property Value
System.String

Implements
IFrameworkElement.ToolTipText

Uid

Declaration
public string Uid { get; }
Property Value
System.String

Implements
IFrameworkElement.Uid

User

Declaration
public virtual UserInteraction User { get; }
Property Value
UserInteraction

Implements
IFrameworkElement.User

VerticalAlignment

Declaration
public VerticalAlignment VerticalAlignment { get; set; }
Property Value
VerticalAlignment

Visibility

Declaration
public Visibility Visibility { get; set; }
Property Value
Visibility

Wait

Declaration
public VisualWait Wait { get; }
Property Value
VisualWait

Implements
IFrameworkElement.Wait

Width

Declaration
public double Width { get; set; }
Property Value
System.Double

XamlTag

Declaration
public virtual string XamlTag { get; }
Property Value
System.String

XamlTagBase

Declaration
public string XamlTagBase { get; }
Property Value
System.String

Methods

AddChildNode(ITargetElement)

Declaration
public void AddChildNode(ITargetElement child)
Parameters
ITargetElement child

Implements
ITargetElement.AddChildNode(ITargetElement)

AnySibling(String)

Declaration
public FrameworkElement AnySibling(string controlType)
Parameters
System.String controlType

Returns
FrameworkElement

AnySibling<T>()

Declaration
public T AnySibling<T>()
    where T : FrameworkElement
Returns
T

Type Parameters
T

As<T>()

Declaration
public T As<T>()
    where T : FrameworkElement
Returns
T

Type Parameters
T

AssignReference(AutomationReference)

Declaration
public override void AssignReference(AutomationReference reference)
Parameters
AutomationReference reference

Overrides
ArtOfTest.WebAii.Silverlight.AutomationObject<ArtOfTest.WebAii.Silverlight.FrameworkElement>.AssignReference(ArtOfTest.WebAii.Silverlight.AutomationReference)
Implements
IFrameworkElement.AssignReference(AutomationReference)

Capture()

Declaration
public Bitmap Capture()
Returns
System.Drawing.Bitmap

Implements
ITargetElement.Capture()

CaptureImage()

Declaration
public ElementImage CaptureImage()
Returns
ElementImage

Implements
ITargetElement.CaptureImage()

CastAs<T>()

Declaration
public T CastAs<T>()
    where T : IFrameworkElement
Returns
T

Type Parameters
T

Implements
IFrameworkElement.CastAs<T>()

EnsureClickable()

Declaration
public void EnsureClickable()

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
System.Object obj

Returns
System.Boolean

Overrides
System.Object.Equals(System.Object)

FromRealObject(Object)

Declaration
public override void FromRealObject(object o)
Parameters
System.Object o

Overrides
ArtOfTest.WebAii.Silverlight.AutomationObject<ArtOfTest.WebAii.Silverlight.FrameworkElement>.FromRealObject(System.Object)

GetAttachedProperty<T>(String, String)

Declaration
public T GetAttachedProperty<T>(string propertyOwner, string propertyName)
Parameters
System.String propertyOwner

System.String propertyName

Returns
T

Type Parameters
T

GetAutomationProperty(String)

Declaration
public AutomationProperty GetAutomationProperty(string name)
Parameters
System.String name

Returns
AutomationProperty

Implements
IFrameworkElement.GetAutomationProperty(String)

GetChildren()

Declaration
public ITargetElement[] GetChildren()
Returns
ITargetElement[]

Implements
ITargetElement.GetChildren()

GetChildTagIndex(FrameworkElement)

Declaration
public int GetChildTagIndex(FrameworkElement child)
Parameters
FrameworkElement child

Returns
System.Int32

GetControlTypeFromInterface(Type)

Declaration
public static Type GetControlTypeFromInterface(Type interfaceType)
Parameters
System.Type interfaceType

Returns
System.Type

GetHashCode()

Declaration
public override int GetHashCode()
Returns
System.Int32

Overrides
System.Object.GetHashCode()

GetHostParent()

Declaration
public ITargetElement GetHostParent()
Returns
ITargetElement

Implements
ITargetElement.GetHostParent()

GetIdentifier(out String, out String)

Declaration
public bool GetIdentifier(out string name, out string value)
Parameters
System.String name

System.String value

Returns
System.Boolean

GetIntRectangle()

Declaration
public Rectangle GetIntRectangle()
Returns
System.Drawing.Rectangle

GetKnownControlTypes(TechnologyType)

Declaration
public static List<string> GetKnownControlTypes(TechnologyType techType)
Parameters
TechnologyType techType

Returns
System.Collections.Generic.List<System.String>

GetNextSibling()

Declaration
public FrameworkElement GetNextSibling()
Returns
FrameworkElement

GetParent()

Declaration
public ITargetElement GetParent()
Returns
ITargetElement

Implements
ITargetElement.GetParent()

GetPrevSibling()

Declaration
public FrameworkElement GetPrevSibling()
Returns
FrameworkElement

GetProperties()

Declaration
public Dictionary<string, string> GetProperties()
Returns
System.Collections.Generic.Dictionary<System.String, System.String>

GetProperty<T>(String)

Declaration
public T GetProperty<T>(string name)
Parameters
System.String name

Returns
T

Type Parameters
T

Implements
IFrameworkElement.GetProperty<T>(String)

GetPropertyTypeSafe(String)

Declaration
public object GetPropertyTypeSafe(string name)
Parameters
System.String name

Returns
System.Object

Implements
IFrameworkElement.GetPropertyTypeSafe(String)

GetRealType()

Declaration
public override string GetRealType()
Returns
System.String

Overrides
ArtOfTest.WebAii.Silverlight.AutomationObject<ArtOfTest.WebAii.Silverlight.FrameworkElement>.GetRealType()

GetRectangle()

Declaration
public RectangleF GetRectangle()
Returns
System.Drawing.RectangleF

GetRectangle(FrameworkElement)

Declaration
public RectangleF GetRectangle(FrameworkElement relativeTo)
Parameters
FrameworkElement relativeTo

Returns
System.Drawing.RectangleF

GetScreenRectangle()

Declaration
public Rectangle GetScreenRectangle()
Returns
System.Drawing.Rectangle

GetStringPresentation()

Declaration
public string GetStringPresentation()
Returns
System.String

Implements
ITargetElement.GetStringPresentation()

GetUniqueHashCode()

Declaration
public int GetUniqueHashCode()
Returns
System.Int32

Implements
ITargetElement.GetUniqueHashCode()

Highlight()

Declaration
public void Highlight()

Highlight(Boolean)

Declaration
public void Highlight(bool clear)
Parameters
System.Boolean clear

InitializeMappings(MappingsCollection)

Declaration
public virtual void InitializeMappings(MappingsCollection mappings)
Parameters
MappingsCollection mappings

InitKnownSilverlightControlTypes()

Declaration
public static void InitKnownSilverlightControlTypes()

InitKnownWpfControlTypes()

Declaration
public static void InitKnownWpfControlTypes()

InitKnownXamlControlTypes(Type)

Declaration
public static void InitKnownXamlControlTypes(Type baseType)
Parameters
System.Type baseType

IsChild(FrameworkElement)

Declaration
public bool IsChild(FrameworkElement element)
Parameters
FrameworkElement element

Returns
System.Boolean

IsHitTest()

Declaration
public virtual bool IsHitTest()
Returns
System.Boolean

IsHitTest(FrameworkElement, Boolean)

Declaration
public virtual bool IsHitTest(FrameworkElement relativeParent, bool allowPartialVisibiltiy)
Parameters
FrameworkElement relativeParent

System.Boolean allowPartialVisibiltiy

Returns
System.Boolean

IsHitTest(Boolean)

Declaration
public virtual bool IsHitTest(bool allowPartialVisibiltiy)
Parameters
System.Boolean allowPartialVisibiltiy

Returns
System.Boolean

KeyPress(Keys, Int32, Int32, Int32)

Declaration
public void KeyPress(Keys key, int holdFor, int delayBetweenRepetitions, int repeatCount)
Parameters
System.Windows.Forms.Keys key

System.Int32 holdFor

System.Int32 delayBetweenRepetitions

System.Int32 repeatCount

Match(IFindExpression)

Declaration
public bool Match(IFindExpression findExpr)
Parameters
IFindExpression findExpr

Returns
System.Boolean

Implements
ITargetElement.Match(IFindExpression)

NextSibling(String)

Declaration
public FrameworkElement NextSibling(string controlType)
Parameters
System.String controlType

Returns
FrameworkElement

NextSibling<T>()

Declaration
public T NextSibling<T>()
    where T : FrameworkElement
Returns
T

Type Parameters
T

Parent()

Declaration
public FrameworkElement Parent()
Returns
FrameworkElement

Parent(String)

Declaration
public FrameworkElement Parent(string controlType)
Parameters
System.String controlType

Returns
FrameworkElement

Parent(String, Boolean)

Declaration
public FrameworkElement Parent(string controlType, bool matchBaseType)
Parameters
System.String controlType

System.Boolean matchBaseType

Returns
FrameworkElement

Parent<T>()

Declaration
public T Parent<T>()
    where T : IFrameworkElement
Returns
T

Type Parameters
T

Implements
IFrameworkElement.Parent<T>()

PreviousSibling(String)

Declaration
public FrameworkElement PreviousSibling(string controlType)
Parameters
System.String controlType

Returns
FrameworkElement

PreviousSibling<T>()

Declaration
public T PreviousSibling<T>()
    where T : FrameworkElement
Returns
T

Type Parameters
T

Refresh()

Declaration
public void Refresh()
Implements
ITargetElement.Refresh()

RegisterElement(Type, String)

Declaration
public static void RegisterElement(Type controlType, string xamlTagName)
Parameters
System.Type controlType

System.String xamlTagName

ScrollToVisible()

Declaration
public void ScrollToVisible()

ScrollToVisible(ScrollToVisibleType)

Declaration
public void ScrollToVisible(ScrollToVisibleType scrollType)
Parameters
ScrollToVisibleType scrollType

SetAttachedProperty<T>(String, String, T)

Declaration
public void SetAttachedProperty<T>(string propertyOwner, string propertyName, T value)
Parameters
System.String propertyOwner

System.String propertyName

T value

Type Parameters
T

SetClosingTag(ITargetElement)

Declaration
public void SetClosingTag(ITargetElement closingElement)
Parameters
ITargetElement closingElement

Implements
ITargetElement.SetClosingTag(ITargetElement)

SetDepth(Int32)

Declaration
public void SetDepth(int depth)
Parameters
System.Int32 depth

Implements
ITargetElement.SetDepth(Int32)

SetFindInfo(VisualFindInfo)

Declaration
public void SetFindInfo(VisualFindInfo findInfo)
Parameters
VisualFindInfo findInfo

Implements
IFrameworkElement.SetFindInfo(VisualFindInfo)

SetFocus()

Declaration
public void SetFocus()
Implements
IFrameworkElement.SetFocus()

SetParent(ITargetElement)

Declaration
public void SetParent(ITargetElement parent)
Parameters
ITargetElement parent

Implements
ITargetElement.SetParent(ITargetElement)

SetProperty(String, Object)

Declaration
public void SetProperty(string name, object value)
Parameters
System.String name

System.Object value

Implements
IFrameworkElement.SetProperty(String, Object)

SetProxy(Boolean)

Declaration
public void SetProxy(bool isProxy)
Parameters
System.Boolean isProxy

Implements
IFrameworkElement.SetProxy(Boolean)

SetUid(String)

Declaration
public void SetUid(string uid)
Parameters
System.String uid

Implements
IFrameworkElement.SetUid(String)

SetXamlTag(String)

Declaration
public void SetXamlTag(string tag)
Parameters
System.String tag

Implements
IFrameworkElement.SetXamlTag(String)

ToRealObject()

Declaration
public override object ToRealObject()
Returns
System.Object

Overrides
ArtOfTest.WebAii.Silverlight.AutomationObject<ArtOfTest.WebAii.Silverlight.FrameworkElement>.ToRealObject()

ToString()

Declaration
public override string ToString()
Returns
System.String

Overrides
System.Object.ToString()

ToXml()

Declaration
public string ToXml()
Returns
System.String

ValidateMouseLocationIfNeeded(Point)

Declaration
public void ValidateMouseLocationIfNeeded(Point point)
Parameters
System.Drawing.Point point

ValidateType(Type, String)

Declaration
protected bool ValidateType(Type type, string tagName)
Parameters
System.Type type

System.String tagName

Returns
System.Boolean

Explicit Interface Implementations

ITargetElement.GetRectangle()

Declaration
Rectangle ITargetElement.GetRectangle()
Returns
System.Drawing.Rectangle

Implements
ITargetElement.GetRectangle()
Getting Started
  • Getting Started
  • Videos
  • Whats New
  • Roadmap
Community
  • Forums
  • Blogs
  • Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.