New to Telerik Test StudioStart a free 30-day trial

Definition

Constructors

C#
public FrameworkElement()

Fields

C#
public static AutomationProperty ActualHeightProperty
C#
public static AutomationProperty ActualWidthProperty
C#
public static AutomationProperty ClipProperty
C#
public static AutomationProperty DataContextProperty
C#
public static AutomationProperty DesiredSizeProperty
C#
public static AutomationProperty HeightProperty
C#
public static AutomationProperty HorizontalAlignmentProperty
C#
public static AutomationProperty IsHitTestVisibleProperty
C#
public static AutomationProperty MarginProperty
C#
public static AutomationProperty MaxHeightProperty
C#
public static AutomationProperty MaxWidthProperty
C#
public static AutomationProperty MinHeightProperty
C#
public static AutomationProperty MinWidthProperty
C#
public static AutomationProperty NameProperty
C#
public static AutomationProperty OpacityMaskProperty
C#
public static AutomationProperty OpacityProperty
C#
public static AutomationProperty RenderSizeProperty
C#
public static AutomationProperty RenderTransformOriginProperty
C#
public static AutomationProperty RenderTransformProperty
C#
public static AutomationProperty TagProperty
C#
public static AutomationProperty VerticalAlignmentProperty
C#
public static AutomationProperty VisibilityProperty
C#
public static AutomationProperty WidthProperty

Properties

C#
public int AbsoluteSiblingTagIndex { get; }

Implements: IFrameworkElement.AbsoluteSiblingTagIndex

C#
public int AbsoluteTagIndex { get; }
C#
public double ActualHeight { get; }

Implements: IFrameworkElement.ActualHeight

C#
public double ActualWidth { get; }

Implements: IFrameworkElement.ActualWidth

C#
[Browsable(false)]
public IApplication Application { get; }
C#
public string AutomationId { get; }
C#
public IList<FrameworkElement> Children { get; }
C#
public Geometry Clip { get; set; }
C#
public virtual Visibility ComputedVisibility { get; }

Implements: IFrameworkElement.ComputedVisibility

C#
public int Depth { get; }

Implements: ITargetElement.Depth

C#
public Size DesiredSize { get; }
C#
public bool EnableValidateMouseLocation { get; set; }
C#
[Browsable(false)]
public VisualFind Find { get; }

Implements: IFrameworkElement.Find

C#
public double Height { get; set; }
C#
public HorizontalAlignment HorizontalAlignment { get; set; }
C#
public IAutomationHost Host { get; }

Implements: ITargetElement.Host

C#
public bool IsHitTestVisible { get; set; }
C#
public bool IsTestRegion { get; }

Implements: ITargetElement.IsTestRegion

C#
public virtual bool IsVisible { get; }
C#
public virtual MappingsCollection Mappings { get; }
C#
public Thickness Margin { get; set; }
C#
public double MaxHeight { get; set; }
C#
public double MaxWidth { get; set; }
C#
public double MinHeight { get; set; }
C#
public double MinWidth { get; set; }
C#
public string Name { get; }

Implements: IFrameworkElement.Name

C#
public double Opacity { get; set; }
C#
public Brush OpacityMask { get; set; }
C#
public ParsedElement ParsedElement { get; }

Implements: ITargetElement.ParsedElement

C#
public Size RenderSize { get; }
C#
public Transform RenderTransform { get; set; }
C#
public Point RenderTransformOrigin { get; set; }
C#
public int TagNameIndex { get; }
C#
public virtual TechnologyType TechnologyType { get; }

Implements: ITargetElement.TechnologyType

C#
public virtual string Text { get; }

Implements: IFrameworkElement.Text

C#
public string TextBlockContent { get; }

Implements: IFrameworkElement.TextBlockContent

C#
public string TextLiteralContent { get; }

Implements: IFrameworkElement.TextLiteralContent

C#
public virtual string ToolTipText { get; }

Implements: IFrameworkElement.ToolTipText

C#
public string Uid { get; }

Implements: IFrameworkElement.Uid

C#
[Browsable(false)]
public virtual UserInteraction User { get; }

Implements: IFrameworkElement.User

C#
public VerticalAlignment VerticalAlignment { get; set; }
C#
public Visibility Visibility { get; set; }
C#
[Browsable(false)]
public VisualWait Wait { get; }

Implements: IFrameworkElement.Wait

C#
public double Width { get; set; }
C#
public virtual string XamlTag { get; }
C#
public string XamlTagBase { get; }

Methods

C#
public void AddChildNode(ITargetElement child)
Parameters:childITargetElement

Implements: ITargetElement.AddChildNode(ITargetElement)

C#
public FrameworkElement AnySibling(string controlType)
Parameters:controlTypestringReturns:

FrameworkElement

C#
public T AnySibling<T>() where T : FrameworkElement
Returns:

T

C#
public T As<T>() where T : FrameworkElement
Returns:

T

C#
public Bitmap Capture()
Returns:

Bitmap

Implements: ITargetElement.Capture()

C#
public ElementImage CaptureImage()
Returns:

ElementImage

Implements: ITargetElement.CaptureImage()

C#
public T CastAs<T>() where T : IFrameworkElement
Returns:

T

Implements: IFrameworkElement.CastAs<T>()

C#
public void EnsureClickable()
C#
public override bool Equals(object obj)
Parameters:objobjectReturns:

bool

Overrides: object.Equals(object)

C#
public override void FromRealObject(object o)
Parameters:oobject

Overrides: AutomationObject<FrameworkElement>.FromRealObject(object)

C#
public T GetAttachedProperty<T>(string propertyOwner, string propertyName)
Parameters:propertyOwnerstringpropertyNamestringReturns:

T

C#
public AutomationProperty GetAutomationProperty(string name)
Parameters:namestringReturns:

AutomationProperty

Implements: IFrameworkElement.GetAutomationProperty(string)

C#
public ITargetElement[] GetChildren()
Returns:

ITargetElement[]

Implements: ITargetElement.GetChildren()

C#
public int GetChildTagIndex(FrameworkElement child)
Parameters:childFrameworkElementReturns:

int

C#
public static Type GetControlTypeFromInterface(Type interfaceType)
Parameters:interfaceTypeTypeReturns:

Type

C#
public override int GetHashCode()
Returns:

int

Overrides: object.GetHashCode()

C#
public ITargetElement GetHostParent()
Returns:

ITargetElement

Implements: ITargetElement.GetHostParent()

C#
public bool GetIdentifier(out string name, out string value)
Parameters:namestringvaluestringReturns:

bool

C#
public Rectangle GetIntRectangle()
Returns:

Rectangle

C#
public static List<string> GetKnownControlTypes(TechnologyType techType)
Parameters:techTypeTechnologyTypeReturns:

List<string>

C#
public FrameworkElement GetNextSibling()
Returns:

FrameworkElement

C#
public ITargetElement GetParent()
Returns:

ITargetElement

Implements: ITargetElement.GetParent()

C#
public FrameworkElement GetPrevSibling()
Returns:

FrameworkElement

C#
public Dictionary<string, string> GetProperties()
Returns:

Dictionary<string, string>

C#
public T GetProperty<T>(string name)
Parameters:namestringReturns:

T

Implements: IFrameworkElement.GetProperty<T>(string)

C#
public object GetPropertyTypeSafe(string name)
Parameters:namestringReturns:

object

Implements: IFrameworkElement.GetPropertyTypeSafe(string)

C#
public override string GetRealType()
Returns:

string

Overrides: AutomationObject<FrameworkElement>.GetRealType()

C#
public RectangleF GetRectangle()
Returns:

RectangleF

C#
public RectangleF GetRectangle(FrameworkElement relativeTo)
Parameters:relativeToFrameworkElementReturns:

RectangleF

C#
public Rectangle GetScreenRectangle()
Returns:

Rectangle

C#
public string GetStringPresentation()
Returns:

string

Implements: ITargetElement.GetStringPresentation()

C#
public int GetUniqueHashCode()
Returns:

int

Implements: ITargetElement.GetUniqueHashCode()

C#
public void Highlight()
C#
public void Highlight(bool clear)
Parameters:clearbool
C#
public virtual void InitializeMappings(MappingsCollection mappings)
Parameters:mappingsMappingsCollection
C#
public static void InitKnownSilverlightControlTypes()
C#
public static void InitKnownWpfControlTypes()
C#
public static void InitKnownXamlControlTypes(Type baseType)
Parameters:baseTypeType
C#
public bool IsChild(FrameworkElement element)
Parameters:elementFrameworkElementReturns:

bool

C#
public virtual bool IsHitTest()
Returns:

bool

C#
public virtual bool IsHitTest(bool allowPartialVisibiltiy)
Parameters:allowPartialVisibiltiyboolReturns:

bool

C#
public virtual bool IsHitTest(FrameworkElement relativeParent, bool allowPartialVisibiltiy)
Parameters:relativeParentFrameworkElementallowPartialVisibiltiyboolReturns:

bool

C#
public void KeyPress(Keys key, int holdFor, int delayBetweenRepetitions, int repeatCount)
Parameters:keyKeysholdForintdelayBetweenRepetitionsintrepeatCountint
C#
public bool Match(IFindExpression findExpr)
Parameters:findExprIFindExpressionReturns:

bool

Implements: ITargetElement.Match(IFindExpression)

C#
public FrameworkElement NextSibling(string controlType)
Parameters:controlTypestringReturns:

FrameworkElement

C#
public T NextSibling<T>() where T : FrameworkElement
Returns:

T

C#
public FrameworkElement Parent()
Returns:

FrameworkElement

C#
public FrameworkElement Parent(string controlType, bool matchBaseType)
Parameters:controlTypestringmatchBaseTypeboolReturns:

FrameworkElement

C#
public FrameworkElement Parent(string controlType)
Parameters:controlTypestringReturns:

FrameworkElement

C#
public T Parent<T>() where T : IFrameworkElement
Returns:

T

Implements: IFrameworkElement.Parent<T>()

C#
public FrameworkElement PreviousSibling(string controlType)
Parameters:controlTypestringReturns:

FrameworkElement

C#
public T PreviousSibling<T>() where T : FrameworkElement
Returns:

T

C#
public void Refresh()

Implements: ITargetElement.Refresh()

C#
public static void RegisterElement(Type controlType, string xamlTagName)
Parameters:controlTypeTypexamlTagNamestring
C#
public void ScrollToVisible()

Implements: IFrameworkElement.ScrollToVisible()

C#
public void ScrollToVisible(ScrollToVisibleType scrollType)
Parameters:scrollTypeScrollToVisibleType
C#
public void SetAttachedProperty<T>(string propertyOwner, string propertyName, T value)
Parameters:propertyOwnerstringpropertyNamestringvalueT
C#
public void SetClosingTag(ITargetElement closingElement)
Parameters:closingElementITargetElement

Implements: ITargetElement.SetClosingTag(ITargetElement)

C#
public void SetDepth(int depth)
Parameters:depthint

Implements: ITargetElement.SetDepth(int)

C#
public void SetFindInfo(VisualFindInfo findInfo)
Parameters:findInfoVisualFindInfo

Implements: IFrameworkElement.SetFindInfo(VisualFindInfo)

C#
public void SetFocus()

Implements: IFrameworkElement.SetFocus()

C#
public void SetParent(ITargetElement parent)
Parameters:parentITargetElement

Implements: ITargetElement.SetParent(ITargetElement)

C#
public void SetProperty(string name, object value)
Parameters:namestringvalueobject

Implements: IFrameworkElement.SetProperty(string, object)

C#
public void SetProxy(bool isProxy)
Parameters:isProxybool

Implements: IFrameworkElement.SetProxy(bool)

C#
public void SetUid(string uid)
Parameters:uidstring

Implements: IFrameworkElement.SetUid(string)

C#
public void SetXamlTag(string tag)
Parameters:tagstring

Implements: IFrameworkElement.SetXamlTag(string)

C#
public override object ToRealObject()
Returns:

object

Overrides: AutomationObject<FrameworkElement>.ToRealObject()

C#
public override string ToString()
Returns:

string

Overrides: object.ToString()

C#
public string ToXml()
Returns:

string

C#
public void ValidateMouseLocationIfNeeded(Point point)
Parameters:pointPoint
C#
protected bool ValidateType(Type type, string tagName)
Parameters:typeTypetagNamestringReturns:

bool

In this article
DefinitionConstructorsFrameworkElement()FieldsActualHeightPropertyActualWidthPropertyClipPropertyDataContextPropertyDesiredSizePropertyHeightPropertyHorizontalAlignmentPropertyIsHitTestVisiblePropertyMarginPropertyMaxHeightPropertyMaxWidthPropertyMinHeightPropertyMinWidthPropertyNamePropertyOpacityMaskPropertyOpacityPropertyRenderSizePropertyRenderTransformOriginPropertyRenderTransformPropertyTagPropertyVerticalAlignmentPropertyVisibilityPropertyWidthPropertyPropertiesAbsoluteSiblingTagIndexAbsoluteTagIndexActualHeightActualWidthApplicationAutomationIdChildrenClipComputedVisibilityDepthDesiredSizeEnableValidateMouseLocationFindHeightHorizontalAlignmentHostIsHitTestVisibleIsTestRegionIsVisibleMappingsMarginMaxHeightMaxWidthMinHeightMinWidthNameOpacityOpacityMaskParsedElementRenderSizeRenderTransformRenderTransformOriginTagNameIndexTechnologyTypeTextTextBlockContentTextLiteralContentToolTipTextUidUserVerticalAlignmentVisibilityWaitWidthXamlTagXamlTagBaseMethodsAddChildNode(ITargetElement)AnySibling(string)AnySibling<T>()As<T>()AssignReference(AutomationReference)Capture()CaptureImage()CastAs<T>()EnsureClickable()Equals(object)FromRealObject(object)GetAttachedProperty<T>(string, string)GetAutomationProperty(string)GetChildren()GetChildTagIndex(FrameworkElement)GetControlTypeFromInterface(Type)GetHashCode()GetHostParent()GetIdentifier(out string, out string)GetIntRectangle()GetKnownControlTypes(TechnologyType)GetNextSibling()GetParent()GetPrevSibling()GetProperties()GetProperty<T>(string)GetPropertyTypeSafe(string)GetRealType()GetRectangle()GetRectangle(FrameworkElement)GetScreenRectangle()GetStringPresentation()GetUniqueHashCode()Highlight()Highlight(bool)InitializeMappings(MappingsCollection)InitKnownSilverlightControlTypes()InitKnownWpfControlTypes()InitKnownXamlControlTypes(Type)IsChild(FrameworkElement)IsHitTest()IsHitTest(bool)IsHitTest(FrameworkElement, bool)KeyPress(Keys, int, int, int)Match(IFindExpression)NextSibling(string)NextSibling<T>()Parent()Parent(string, bool)Parent(string)Parent<T>()PreviousSibling(string)PreviousSibling<T>()Refresh()RegisterElement(Type, string)ScrollToVisible()ScrollToVisible(ScrollToVisibleType)SetAttachedProperty<T>(string, string, T)SetClosingTag(ITargetElement)SetDepth(int)SetFindInfo(VisualFindInfo)SetFocus()SetParent(ITargetElement)SetProperty(string, object)SetProxy(bool)SetUid(string)SetXamlTag(string)ToRealObject()ToString()ToXml()ValidateMouseLocationIfNeeded(Point)ValidateType(Type, string)
Not finding the help you need?
Contact Support