FrameworkElement Class

Progress Software Corporation - Testing Framework 2018.1 Automation Infrastructure
The base FrameworkElement that represents any visual element in the Silverlight application.
Inheritance Hierarchy

SystemObject
  ArtOfTest.WebAii.SilverlightAutomationObjectFrameworkElement
    ArtOfTest.WebAii.SilverlightFrameworkElement
      More...

Namespace:  ArtOfTest.WebAii.Silverlight
Assembly:  ArtOfTest.WebAii (in ArtOfTest.WebAii.dll) Version: 2018.1.116.0 (2018.1.116.0)
Syntax

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

The FrameworkElement type exposes the following members.

Constructors

  NameDescription
Public methodFrameworkElement
Create a new FrameworkElement.
Top
Properties

  NameDescription
Public propertyAbsoluteSiblingTagIndex
Get the sibling tag index of this FrameworkElement.
Public propertyAbsoluteTagIndex
Get the absolute index of this Xaml tag in the Visual Tree.
Public propertyActualHeight
Gets the value of the ActualHeight of this element.
Public propertyActualWidth
Gets the value of the ActualWidth of this element.
Public propertyApplication
Get the Application object that owns this element.
Public propertyAutomationId
Gets the AutomationId set on this element if any.
Public propertyChildren
Gets the visual children of this element.
Public propertyClip
Gets / Sets the value of the Clip of this element.
Public propertyComputedVisibility
Public propertyDepth
Get the depth of this element in the Visual Tree.
Public propertyDesiredSize
Gets the value of the DesiredSize of this element.
Public propertyEnableValidateMouseLocation
Enables or disables the validation of mouse click locations before performing mouse actions
Public propertyFind
Get the Find object used to search the visual children of this element.
Public propertyHeight
Gets / Sets the value of the Height of this element.
Public propertyHorizontalAlignment
Gets / Sets the value of the HorizontalAlignment of this element.
Public propertyHost
Returns the AutomationHost for this object.
Public propertyIsHitTestVisible
Gets / Sets the value of the IsHitTestVisible of this element.
Public propertyIsTestRegion
Gets whether or not this element is contained in a test region.
Public propertyIsVisible
Public propertyMappings
Gets a mappings collection that stores customizable control specific mapping knowledge that can be later customized.
Public propertyMargin
Gets / Sets the value of the Margin of this element.
Public propertyMaxHeight
Gets / Sets the value of the MaxHeight of this element.
Public propertyMaxWidth
Gets / Sets the value of the MaxWidth of this element.
Public propertyMinHeight
Gets / Sets the value of the MinHeight of this element.
Public propertyMinWidth
Gets /Sets the value of the MinWidth of this element.
Public propertyName
Gets the value of the Name of this element.
Public propertyOpacity
Gets / Sets the value of the Opacity of this element.
Public propertyOpacityMask
Gets / Sets the value of the OpacityMask of this element.
Public propertyParsedElement
Get the parsed element under this object.
Public propertyPropertyBag
The automation object property bag.
(Inherited from AutomationObjectT.)
Public propertyReference
Get or set the object reference.
(Inherited from AutomationObjectT.)
Public propertyRenderSize
Gets the value of the RenderSize of this element.
Public propertyRenderTransform
Gets / Sets the value of the RenderTransform of this element.
Public propertyRenderTransformOrigin
Gets / Sets the value of the RenderTransformOrigin of this element.
Public propertyTagNameIndex
Gets the tag name index of the xaml tag name in the visual tree.
Public propertyTechnologyType
Get the technology type of this element.
Public propertyText
Gets the element text, the first text block text by default.
Public propertyTextBlockContent
Gets the text from all the inner TextBlock elements.
Public propertyTextLiteralContent
Gets the literal text content of this framework element if any.
Public propertyToolTipText
The text of the tooltip specified for this element
Public propertyUid
Public propertyUser
Gets the UI interaction object that allows you to interact with this framework element directly using real mouse and keyboard interactions
Public propertyVerticalAlignment
Gets / Sets the value of the VerticalAlignment of this element.
Public propertyVisibility
Gets / Sets the value of the Visibility of this element.
Public propertyWait
Gets a VisualWait object to be used on waiting for Visual elemnets in the VisualTree.
Public propertyWidth
Gets / Sets the value of the Width of this element.
Public propertyXamlTag
Get the xaml tag name of this FrameworkElement. This is used for hierarchy matching and traversal.
Public propertyXamlTagBase
Gets the lowest control type that the framework recognizes
Top
Methods

  NameDescription
Public methodAddChildNode
Add a child node to this framework element.
Public methodAnySibling(String)
Return any sibling of this control of the specified type. This method searches the previous siblings first, then the next sibilings.
Public methodAnySiblingT
Return any sibling of this control of the specified type.
Public methodAsT
Return this framework element as a strongly-typed control.
Public methodAssignReference
Assign the automation reference to this element.
(Overrides AutomationObjectTAssignReference(AutomationReference).)
Public methodCapture
Capture the image of this element.
Public methodCastAsT
Returns this framework element as a strongly-typed control without enforcing tag name to match the type. This functions gives you free casting abilities between types.
Public methodDeserialize
Deserialize this AutomationObject to a jsonString TODO: Should this be a static method?
(Inherited from AutomationObjectT.)
Public methodEnsureClickable
Performs best-effort operations to ensure that this element is user-visible and avialable for simulated user actions.
Public methodEquals
Determines whether this FrameworkElement is equal to another, by comparing their AutomationReferences
(Overrides ObjectEquals(Object).)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFromRealObject
Used internally to translate object across application boundaries
(Overrides AutomationObjectTFromRealObject(Object).)
Public methodGetAttachedPropertyT
Get value of attached property.
Public methodGetAutomationProperty
Public methodGetChildren
Get the children of this framework element.
Public methodGetChildTagIndex
Given a child FrameworkElement of this element, return this child's tag index relative to this element. If the child has the same tag name as this element, it will not be counted.
Public methodStatic memberGetControlTypeFromInterface
Get the loaded Xaml control type by given interface control type. Useful for sharing common Xaml (SL/Wpf) controls.
Public methodGetHashCode
Calculates and returns the hashcode for this element.
(Overrides ObjectGetHashCode.)
Public methodGetHostParent
Not implemented for Silverlight elements. Returns null.
Public methodGetIdentifier
Gets whether this framework element has an automationid set on it or name. If it does, it will return which one was found and its value. If both are found, AutomationId will be returned first.
Public methodGetIntRectangle
Gets the bounding rectangle of this element within the Silverlight app with integral coordinates
Public methodStatic memberGetKnownControlTypes
Return all the known control types.
Public methodGetNextSibling
Get the next sibling of this FrameworkElement.
Public methodGetParent
Get the Parent of this element.
Public methodGetPrevSibling
Get the previous sibling.
Public methodGetProperties
Reads and returns the specified property from this element.
Public methodGetProperty(AutomationProperty)
Get a property on this automation object.
(Inherited from AutomationObjectT.)
Public methodGetProperty(AutomationProperty, Object)
Gets a property on this automation object, or returns a default value if the property cannot be retrieved
(Inherited from AutomationObjectT.)
Public methodGetPropertyT(String)
Gets the property value by given name. Will be useful for common translators supporting different technologies (SL/Wpf).
Public methodGetPropertyTypeSafe
Public methodGetRealType
Gets the real object type. This property returns string.empty on FrameworkElement and all subclasses that inherit from it.
(Overrides AutomationObjectTGetRealType.)
Public methodGetRectangle
Get the bounding rectangle of this element within this Silverlight App.
Public methodGetRectangle(FrameworkElement)
Get the bounding rectangle of this element relative to another element
Public methodGetScreenRectangle
Return the actual coordinates of this element in absolute screen coordinates taking into account the location of the overall plug-in on the page.
Public methodGetStringPresentation
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetUniqueHashCode
Calculates and returns the hash code for this element.
Public methodHighlight
Highlight this element.
Public methodHighlight(Boolean)
Highlight this element
Public methodInitializeMappings
Initialize the Mappings collection. This method is called when the Mappings collection is accessed for the first time. It is then cached
Public methodStatic memberInitKnownSilverlightControlTypes
Public methodStatic memberInitKnownWpfControlTypes
Public methodStatic memberInitKnownXamlControlTypes
Initialize all the known types
Public methodInvokeMethod(String, Object)
Invokes a method on the AutomationObject's client-side peer
(Inherited from AutomationObjectT.)
Public methodInvokeMethod(AutomationMethod, Object)
Invokes a method on the AutomationObject's client-side peer
(Inherited from AutomationObjectT.)
Public methodIsChild
Checks if element passed in is a child of this framework element.
Public methodIsHitTest
Determines whether the element can be clicked/selected
Public methodIsHitTest(Boolean)
Determines whether [is hit test] [the specified allow partial visibiltiy].
Public methodIsHitTest(FrameworkElement, Boolean)
Determines whether [is hit test] [the specified relative parent].
Public methodKeyPress
Simulate user key press specific to this element.
Public methodMatch
Match this FrameworkElement against a specific find expression.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodNextSibling(String)
Return the next sibling of this control of type.
Public methodNextSiblingT
The next sibling control of desired type.
Public methodParent
Get the parent framework element
Public methodParent(String)
Get the parent control that matched the control type.
Public methodParent(String, Boolean)
Get the parent control that matched the control type.
Public methodParentT
Get the parent control of this control that is of type T.
Public methodPreviousSibling(String)
The previous sibling control of desired type.
Public methodPreviousSiblingT
The previous sibling control of specified type.
Public methodRefresh
Refresh this FrameworkElement within the VisualTree.
Public methodStatic memberRegisterElement
Associate a control type with a Xaml tag.
Public methodScrollToVisible
Scrolls the web page so that this element is visible in the browser window
Public methodScrollToVisible(ScrollToVisibleType)
Scrolls the web page so that this element is visible in the browser window
Public methodSerialize
Serialize this automation object to a Json String
(Inherited from AutomationObjectT.)
Public methodSetAttachedPropertyT
Set value of attached property.
Public methodSetClosingTag
Ignore for the base FrameworkElement. May be overriden in a derived class to provide additional functionality.
Public methodSetDepth
Set the depth of this framework element.
Public methodSetFindInfo
Public methodSetFocus
Sets keyboard focus to this element
Public methodSetParent
Set the parent object of this framework element.
Public methodSetProperty(String, Object)
Sets the property value. Will be useful for common translators supporting different technologies (SL/Wpf).
Public methodSetProperty(AutomationProperty, Object)
Set a property on this automation object.
(Inherited from AutomationObjectT.)
Public methodSetProxy
Public methodSetUid
Public methodSetXamlTag
Set the Xaml tag name.
Public methodToRealObject
Used internally to translate object across application boundaries
(Overrides AutomationObjectTToRealObject.)
Public methodToString
Gets the string representation of this FrameworkElement object.
(Overrides ObjectToString.)
Public methodToXml
Gets an Xml formatted string that represents this element and all its children This Xml represents the VisualTree.
Public methodValidateMouseLocationIfNeeded
Validate that the current location of the mouse is inside the browser window.
Protected methodValidateType
Validate a control type with the control tag name.
Top
Fields

  NameDescription
Public fieldStatic memberActualHeightProperty
Defines how to get the ActualHeight property of this element.
Public fieldStatic memberActualWidthProperty
Defines how to get the ActualWidth property of this element.
Public fieldStatic memberClipProperty
Defines how to get the Clip property of this element.
Public fieldStatic memberDataContextProperty
Defines how to get the DataContext property of this element.
Public fieldStatic memberDesiredSizeProperty
Defines how to get the DesiredSize property of this element.
Public fieldStatic memberHeightProperty
Defines how to get the Height property of this element.
Public fieldStatic memberHorizontalAlignmentProperty
Defines how to get the HorizontalAlignment property of this element.
Public fieldStatic memberIsHitTestVisibleProperty
Defines how to get the IsHitTestVisible property of this element.
Public fieldStatic memberMarginProperty
Defines how to get the Margin property of this element.
Public fieldStatic memberMaxHeightProperty
Defines how to get the MaxHeight property of this element.
Public fieldStatic memberMaxWidthProperty
Defines how to get the MaxWidth property of this element.
Public fieldStatic memberMinHeightProperty
Defines how to get the MinHeight property of this element.
Public fieldStatic memberMinWidthProperty
Defines how to get the MinWidth property of this element.
Public fieldStatic memberNameProperty
Defines how to get the Name property of this element.
Public fieldStatic memberOpacityMaskProperty
Defines how to get the OpacityMask property of this element.
Public fieldStatic memberOpacityProperty
Defines how to get the Opacity property of this element.
Public fieldStatic memberRenderSizeProperty
Defines how to get the RenderSize property of this element.
Public fieldStatic memberRenderTransformOriginProperty
Defines how to get the RenderTransformOrigin property of this element.
Public fieldStatic memberRenderTransformProperty
Defines how to get the RenderTransform property of this element.
Public fieldStatic memberTagProperty
Defines how to get the Tag property of this element.
Public fieldStatic memberVerticalAlignmentProperty
Defines how to get the VerticalAlignment property of this element.
Public fieldStatic memberVisibilityProperty
Defines how to get the Visibility property of this element.
Public fieldStatic memberWidthProperty
Defines how to get the Width property of this element.
Top
See Also

Reference

Inheritance Hierarchy

SystemObject
  ArtOfTest.WebAii.SilverlightAutomationObjectFrameworkElement
    ArtOfTest.WebAii.SilverlightFrameworkElement
      ArtOfTest.WebAii.Controls.Xaml.SilverlightSilverlightTestElement
      ArtOfTest.WebAii.Controls.Xaml.WpfWpfTestElement
      Telerik.WebAii.Controls.XamlGanttVirtulizedPanel
      Telerik.WebAii.Controls.XamlGridViewGroupPanelItem
      Telerik.WebAii.Controls.Xaml.WpfAxis3D
      Telerik.WebAii.Controls.Xaml.WpfBarSeries3D
      Telerik.WebAii.Controls.Xaml.WpfGridViewGroupPanelItem
      Telerik.WebAii.Controls.Xaml.WpfGridViewSearchPanel
      Telerik.WebAii.Controls.Xaml.WpfPointSeries3D
      Telerik.WebAii.Controls.Xaml.WpfSurfaceSeries3D