Class FrameworkElement
Inherited Members
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
ActualWidthProperty
ClipProperty
DataContextProperty
DesiredSizeProperty
HeightProperty
HorizontalAlignmentProperty
Declaration
public static AutomationProperty HorizontalAlignmentProperty
Field Value
AutomationProperty
|
IsHitTestVisibleProperty
Declaration
public static AutomationProperty IsHitTestVisibleProperty
Field Value
AutomationProperty
|
MarginProperty
MaxHeightProperty
MaxWidthProperty
MinHeightProperty
MinWidthProperty
NameProperty
OpacityMaskProperty
OpacityProperty
RenderSizeProperty
RenderTransformOriginProperty
Declaration
public static AutomationProperty RenderTransformOriginProperty
Field Value
AutomationProperty
|
RenderTransformProperty
TagProperty
VerticalAlignmentProperty
Declaration
public static AutomationProperty VerticalAlignmentProperty
Field Value
AutomationProperty
|
VisibilityProperty
WidthProperty
Properties
AbsoluteSiblingTagIndex
Declaration
public int AbsoluteSiblingTagIndex { get; }
Property Value
System.Int32
|
Implements
AbsoluteTagIndex
Declaration
public int AbsoluteTagIndex { get; }
Property Value
System.Int32
|
ActualHeight
Declaration
public double ActualHeight { get; }
Property Value
System.Double
|
Implements
ActualWidth
Declaration
public double ActualWidth { get; }
Property Value
System.Double
|
Implements
Application
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
ComputedVisibility
Declaration
public virtual Visibility ComputedVisibility { get; }
Property Value
Visibility
|
Implements
Depth
DesiredSize
EnableValidateMouseLocation
Declaration
public bool EnableValidateMouseLocation { get; set; }
Property Value
System.Boolean
|
Find
Height
Declaration
public double Height { get; set; }
Property Value
System.Double
|
HorizontalAlignment
Declaration
public HorizontalAlignment HorizontalAlignment { get; set; }
Property Value
HorizontalAlignment
|
Host
IsHitTestVisible
Declaration
public bool IsHitTestVisible { get; set; }
Property Value
System.Boolean
|
IsTestRegion
Declaration
public bool IsTestRegion { get; }
Property Value
System.Boolean
|
Implements
IsVisible
Declaration
public virtual bool IsVisible { get; }
Property Value
System.Boolean
|
Mappings
Margin
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
Opacity
Declaration
public double Opacity { get; set; }
Property Value
System.Double
|
OpacityMask
ParsedElement
RenderSize
RenderTransform
RenderTransformOrigin
TagNameIndex
Declaration
public int TagNameIndex { get; }
Property Value
System.Int32
|
TechnologyType
Declaration
public virtual TechnologyType TechnologyType { get; }
Property Value
TechnologyType
|
Implements
Text
Declaration
public virtual string Text { get; }
Property Value
System.String
|
Implements
TextBlockContent
Declaration
public string TextBlockContent { get; }
Property Value
System.String
|
Implements
TextLiteralContent
Declaration
public string TextLiteralContent { get; }
Property Value
System.String
|
Implements
ToolTipText
Declaration
public virtual string ToolTipText { get; }
Property Value
System.String
|
Implements
Uid
Declaration
public string Uid { get; }
Property Value
System.String
|
Implements
User
VerticalAlignment
Declaration
public VerticalAlignment VerticalAlignment { get; set; }
Property Value
VerticalAlignment
|
Visibility
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
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
Implements
Capture()
Declaration
public Bitmap Capture()
Returns
System.Drawing.Bitmap
|
Implements
CaptureImage()
CastAs<T>()
Declaration
public T CastAs<T>()
where T : IFrameworkElement
Returns
T
|
Type Parameters
T
|
Implements
EnsureClickable()
Declaration
public void EnsureClickable()
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
|
Returns
System.Boolean
|
Overrides
FromRealObject(Object)
Declaration
public override void FromRealObject(object o)
Parameters
System.Object
o
|
Overrides
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
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
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()
GetParent()
GetPrevSibling()
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
GetPropertyTypeSafe(String)
Declaration
public object GetPropertyTypeSafe(string name)
Parameters
System.String
name
|
Returns
System.Object
|
Implements
GetRealType()
Declaration
public override string GetRealType()
Returns
System.String
|
Overrides
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
GetUniqueHashCode()
Declaration
public int GetUniqueHashCode()
Returns
System.Int32
|
Implements
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
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()
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
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()
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
SetDepth(Int32)
Declaration
public void SetDepth(int depth)
Parameters
System.Int32
depth
|
Implements
SetFindInfo(VisualFindInfo)
Declaration
public void SetFindInfo(VisualFindInfo findInfo)
Parameters
VisualFindInfo
findInfo
|
Implements
SetFocus()
SetParent(ITargetElement)
Declaration
public void SetParent(ITargetElement parent)
Parameters
ITargetElement
parent
|
Implements
SetProperty(String, Object)
Declaration
public void SetProperty(string name, object value)
Parameters
System.String
name
|
System.Object
value
|
Implements
SetProxy(Boolean)
Declaration
public void SetProxy(bool isProxy)
Parameters
System.Boolean
isProxy
|
Implements
SetUid(String)
Declaration
public void SetUid(string uid)
Parameters
System.String
uid
|
Implements
SetXamlTag(String)
Declaration
public void SetXamlTag(string tag)
Parameters
System.String
tag
|
Implements
ToRealObject()
Declaration
public override object ToRealObject()
Returns
System.Object
|
Overrides
ToString()
Declaration
public override string ToString()
Returns
System.String
|
Overrides
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
|