Class
AutoCompleteBox

Wraps an AutoCompleteBox element.

Definition

Namespace:ArtOfTest.WebAii.Silverlight.UI

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public class AutoCompleteBox : Control, IAutomationPeer, IPeerConverter, IAutoCompleteBox, IControl, IFrameworkElement, ITargetElement

Inheritance: objectAutomationObject<FrameworkElement>FrameworkElementSilverlightTestElementControlAutoCompleteBox

Implements: IAutoCompleteBoxIAutomationPeerIControlIFrameworkElementIPeerConverterITargetElement

Inherited Members Control.IsTabStopPropertyControl.TabIndexPropertyControl.TabNavigationPropertyControl.PaddingPropertyControl.HorizontalContentAlignmentPropertyControl.VerticalContentAlignmentPropertyControl.BackgroundPropertyControl.BorderBrushPropertyControl.BorderThicknessPropertyControl.FontSizePropertyControl.ForegroundPropertyControl.IsEnabledPropertyControl.FontFamilyPropertyControl.FontStretchPropertyControl.FontStylePropertyControl.FontWeightPropertyControl.IsTabStopControl.TabIndexControl.TabNavigationControl.PaddingControl.HorizontalContentAlignmentControl.VerticalContentAlignmentControl.BackgroundControl.BorderBrushControl.BorderThicknessControl.FontSizeControl.ForegroundControl.IsEnabledControl.FontFamilyControl.FontStretchControl.FontStyleControl.FontWeightSilverlightTestElement.UseLayoutRoundingPropertySilverlightTestElement.UseLayoutRoundingFrameworkElement.ActualWidthPropertyFrameworkElement.ActualHeightPropertyFrameworkElement.WidthPropertyFrameworkElement.HeightPropertyFrameworkElement.MinWidthPropertyFrameworkElement.MaxWidthPropertyFrameworkElement.MinHeightPropertyFrameworkElement.MaxHeightPropertyFrameworkElement.HorizontalAlignmentPropertyFrameworkElement.VerticalAlignmentPropertyFrameworkElement.MarginPropertyFrameworkElement.DesiredSizePropertyFrameworkElement.RenderSizePropertyFrameworkElement.NamePropertyFrameworkElement.TagPropertyFrameworkElement.DataContextPropertyFrameworkElement.OpacityPropertyFrameworkElement.ClipPropertyFrameworkElement.RenderTransformPropertyFrameworkElement.OpacityMaskPropertyFrameworkElement.RenderTransformOriginPropertyFrameworkElement.IsHitTestVisiblePropertyFrameworkElement.VisibilityPropertyFrameworkElement.GetIdentifier(out string, out string)FrameworkElement.IsChild(FrameworkElement)FrameworkElement.GetChildTagIndex(FrameworkElement)FrameworkElement.InitializeMappings(MappingsCollection)FrameworkElement.As<T>()FrameworkElement.CastAs<T>()FrameworkElement.SetProxy(bool)FrameworkElement.SetUid(string)FrameworkElement.SetFindInfo(VisualFindInfo)FrameworkElement.SetXamlTag(string)FrameworkElement.AssignReference(AutomationReference)FrameworkElement.KeyPress(Keys, int, int, int)FrameworkElement.GetRectangle()FrameworkElement.GetRectangle(FrameworkElement)FrameworkElement.GetIntRectangle()FrameworkElement.IsHitTest()FrameworkElement.IsHitTest(bool)FrameworkElement.IsHitTest(FrameworkElement, bool)FrameworkElement.Highlight()FrameworkElement.Highlight(bool)FrameworkElement.Parent()FrameworkElement.Parent<T>()FrameworkElement.Parent(string)FrameworkElement.Parent(string, bool)FrameworkElement.GetNextSibling()FrameworkElement.GetPrevSibling()FrameworkElement.NextSibling(string)FrameworkElement.NextSibling<T>()FrameworkElement.PreviousSibling(string)FrameworkElement.PreviousSibling<T>()FrameworkElement.AnySibling<T>()FrameworkElement.AnySibling(string)FrameworkElement.GetScreenRectangle()FrameworkElement.ScrollToVisible()FrameworkElement.ScrollToVisible(ScrollToVisibleType)FrameworkElement.EnsureClickable()FrameworkElement.ToXml()FrameworkElement.Refresh()FrameworkElement.Equals(object)FrameworkElement.GetHashCode()FrameworkElement.GetProperties()FrameworkElement.GetAttachedProperty<T>(string, string)FrameworkElement.SetAttachedProperty<T>(string, string, T)FrameworkElement.SetFocus()FrameworkElement.ValidateMouseLocationIfNeeded(Point)FrameworkElement.GetStringPresentation()FrameworkElement.ToRealObject()FrameworkElement.FromRealObject(object)FrameworkElement.ValidateType(Type, string)FrameworkElement.GetKnownControlTypes(TechnologyType)FrameworkElement.RegisterElement(Type, string)FrameworkElement.InitKnownWpfControlTypes()FrameworkElement.InitKnownSilverlightControlTypes()FrameworkElement.InitKnownXamlControlTypes(Type)FrameworkElement.GetControlTypeFromInterface(Type)FrameworkElement.Match(IFindExpression)FrameworkElement.SetDepth(int)FrameworkElement.AddChildNode(ITargetElement)FrameworkElement.SetClosingTag(ITargetElement)FrameworkElement.GetChildren()FrameworkElement.GetParent()FrameworkElement.GetHostParent()FrameworkElement.SetParent(ITargetElement)FrameworkElement.GetUniqueHashCode()FrameworkElement.ToString()FrameworkElement.Capture()FrameworkElement.CaptureImage()FrameworkElement.GetProperty<T>(string)FrameworkElement.GetPropertyTypeSafe(string)FrameworkElement.GetAutomationProperty(string)FrameworkElement.SetProperty(string, object)FrameworkElement.ActualWidthFrameworkElement.ActualHeightFrameworkElement.WidthFrameworkElement.HeightFrameworkElement.MinWidthFrameworkElement.MaxWidthFrameworkElement.MinHeightFrameworkElement.MaxHeightFrameworkElement.HorizontalAlignmentFrameworkElement.VerticalAlignmentFrameworkElement.MarginFrameworkElement.DesiredSizeFrameworkElement.RenderSizeFrameworkElement.NameFrameworkElement.OpacityFrameworkElement.ClipFrameworkElement.RenderTransformFrameworkElement.OpacityMaskFrameworkElement.RenderTransformOriginFrameworkElement.IsHitTestVisibleFrameworkElement.VisibilityFrameworkElement.UidFrameworkElement.MappingsFrameworkElement.AutomationIdFrameworkElement.XamlTagBaseFrameworkElement.TextBlockContentFrameworkElement.TextLiteralContentFrameworkElement.UserFrameworkElement.XamlTagFrameworkElement.WaitFrameworkElement.FindFrameworkElement.ApplicationFrameworkElement.AbsoluteTagIndexFrameworkElement.TagNameIndexFrameworkElement.AbsoluteSiblingTagIndexFrameworkElement.EnableValidateMouseLocationFrameworkElement.ToolTipTextFrameworkElement.ComputedVisibilityFrameworkElement.IsVisibleFrameworkElement.ChildrenFrameworkElement.TechnologyTypeFrameworkElement.DepthFrameworkElement.IsTestRegionFrameworkElement.ParsedElementFrameworkElement.HostAutomationObject<FrameworkElement>.GetProperty(AutomationProperty)AutomationObject<FrameworkElement>.GetProperty(AutomationProperty, object)AutomationObject<FrameworkElement>.SetProperty(AutomationProperty, object)AutomationObject<FrameworkElement>.InvokeMethod(AutomationMethod, params object[])AutomationObject<FrameworkElement>.InvokeMethod(string, params object[])AutomationObject<FrameworkElement>.Serialize()AutomationObject<FrameworkElement>.Deserialize(string)AutomationObject<FrameworkElement>.ReferenceAutomationObject<FrameworkElement>.PropertyBag

Constructors

AutoCompleteBox()

Declaration

cs-api-definition
public AutoCompleteBox()

Fields

FilterModeProperty

Declaration

cs-api-definition
public static AutomationProperty FilterModeProperty

Field Value

AutomationProperty

IsDropDownOpenProperty

Declaration

cs-api-definition
public static AutomationProperty IsDropDownOpenProperty

Field Value

AutomationProperty

IsTextCompletionEnabledProperty

Declaration

cs-api-definition
public static AutomationProperty IsTextCompletionEnabledProperty

Field Value

AutomationProperty

MaxDropDownHeightProperty

Declaration

cs-api-definition
public static AutomationProperty MaxDropDownHeightProperty

Field Value

AutomationProperty

MinimumPopulateDelayProperty

Declaration

cs-api-definition
public static AutomationProperty MinimumPopulateDelayProperty

Field Value

AutomationProperty

MinimumPrefixLengthProperty

Declaration

cs-api-definition
public static AutomationProperty MinimumPrefixLengthProperty

Field Value

AutomationProperty

SearchTextProperty

Declaration

cs-api-definition
public static AutomationProperty SearchTextProperty

Field Value

AutomationProperty

TextProperty

Declaration

cs-api-definition
public static AutomationProperty TextProperty

Field Value

AutomationProperty

Properties

FilterMode

Declaration

cs-api-definition
public AutoCompleteFilterMode FilterMode { get; set; }

Property Value

AutoCompleteFilterMode

IsDropDownOpen

Declaration

cs-api-definition
public bool IsDropDownOpen { get; set; }

Property Value

bool

IsTextCompletionEnabled

Declaration

cs-api-definition
public bool IsTextCompletionEnabled { get; set; }

Property Value

bool

MaxDropDownHeight

Declaration

cs-api-definition
public double MaxDropDownHeight { get; set; }

Property Value

double

MinimumPopulateDelay

Declaration

cs-api-definition
public int MinimumPopulateDelay { get; set; }

Property Value

int

MinimumPrefixLength

Declaration

cs-api-definition
public int MinimumPrefixLength { get; set; }

Property Value

int

SearchText

Declaration

cs-api-definition
public string SearchText { get; set; }

Property Value

string

Selector

Get the drop down list box element holding the items to select.

Declaration

cs-api-definition
public virtual IListBox Selector { get; }

Property Value

IListBox

Implements IAutoCompleteBox.Selector

Text

Gets the first text block text.

Declaration

cs-api-definition
public string Text { get; set; }

Property Value

string

Implements IFrameworkElement.Text

TextBox

Get the actual TextBox element to type text into. Override for custom control template!

Declaration

cs-api-definition
public virtual TextBox TextBox { get; }

Property Value

TextBox

Methods

GetRealType()

Gets the real object type. This property returns string.empty on FrameworkElement and all subclasses that inherit from it.

Declaration

cs-api-definition
public override string GetRealType()

Returns

string

Overrides Control.GetRealType()

Select(bool, int)

Selects item in the drop down if open.

Declaration

cs-api-definition
public void Select(bool simulateRealUser, int itemIndex)

Parameters

simulateRealUser

bool

If true, simulates real click, otherwise changes selection.

itemIndex

int

The index of the item to select.

Implements IAutoCompleteBox.Select(bool, int)

Select(bool, string)

Selects item in the drop down if open.

Declaration

cs-api-definition
public void Select(bool simulateRealUser, string itemText)

Parameters

simulateRealUser

bool

If true, simulates real click, otherwise changes selection.

itemText

string

The text of the item to select.

Implements IAutoCompleteBox.Select(bool, string)

SetText(bool, string, int, int)

Sets or types a new text into the TextBox.

Declaration

cs-api-definition
public void SetText(bool simulateRealUser, string text, int keyPressTime, int keyHoldTime)

Parameters

simulateRealUser

bool

If true, simulates typing, otherwise simply replaces the text.

text

string

The text to set/type.

keyPressTime

int

The delay between each press

keyHoldTime

int

The delay between pressing and releasing each key

Implements IAutoCompleteBox.SetText(bool, string, int, int)