Supported WPF Controls

Applies to TestLeft 4.91, last modified on July 1, 2021

TestLeft can simulate user actions and access internal properties and methods of various WPF controls. You can also command your tests to recognize your custom controls as WPF controls to simulate user actions against them.

About Supported WPF Controls

TestLeft can simulate user actions against any WPF control via graphical user interface. In addition, TestLeft provides extended support for the most of WPF controls.

In your tests, you can cast these controls to appropriate interfaces that extend the control’s functionality with a number of additional methods and properties. Use those methods and properties to simulate various user actions over the controls, for example, select individual items or retrieve item text.

Supported Component Versions

  • .NET Framework v. 3.0 - 4.8.

  • PowerBuilder .NET 12.0, 12.5, 12.5.2 and 12.6.

  • Microsoft Visual Studio 2010 - 2013 Shell.

Note: For information on the supported WPF Toolkit controls, see Supported Microsoft Controls.

Supported Classes

TestLeft recognizes controls by their class name. Below is a full list of the WPF controls that TestLeft supports.

Controls Classes
Button System.Windows.Controls.Button
Microsoft.Windows.Controls.Ribbon.RibbonButton
Sybase.PowerBuilder.WPF.Controls.CommandButton
Sybase.PowerBuilder.WPF.Controls.ToolbarButton
Sybase.PowerBuilder.WPF.Controls.PictureButton
Microsoft.VisualStudio.PlatformUI.VsButton
Check box System.Windows.Controls.CheckBox
Microsoft.Windows.Controls.Ribbon.RibbonCheckBox
Sybase.PowerBuilder.WPF.Controls.CheckBox
Combo box System.Windows.Controls.ComboBox
Sybase.PowerBuilder.WPF.Controls.DropDownListBox
Sybase.PowerBuilder.WPF.Controls.DropDownPictureListBox
Edit System.Windows.Controls.TextBox
Sybase.PowerBuilder.WPF.Controls.MultiLineEdit
Sybase.PowerBuilder.WPF.Controls.SingleLineEdit
Expander System.Windows.Controls.Expander
List box System.Windows.Controls.ListBox
Sybase.PowerBuilder.WPF.Controls.ListBox
Sybase.PowerBuilder.WPF.Controls.PictureListBox
List view System.Windows.Controls.ListView
Sybase.PowerBuilder.WPF.Controls.ListView
Menu System.Windows.Controls.Menu
Sybase.PowerBuilder.WPF.Controls.Menu
Microsoft.VisualStudio.PlatformUI.VsMenu
Password edit System.Windows.Controls.PasswordBox
Radio button System.Windows.Controls.RadioButton
Sybase.PowerBuilder.WPF.Controls.RadioButton
Repeat button System.Windows.Controls.Primitives.RepeatButton
Ribbon Microsoft.Windows.Controls.Ribbon.Ribbon
System.Windows.Controls.Ribbon.Ribbon
Scroll bar System.Windows.Controls.Primitives.ScrollBar
Sybase.PowerBuilder.WPF.Controls.HScrollBar
Sybase.PowerBuilder.WPF.Controls.VScrollBar
Scroll viewer System.Windows.Controls.ScrollViewer
System.Windows.Controls.FlowDocumentScrollViewer
System.Windows.Controls.DocumentViewer
TabControl System.Windows.Controls.TabControl
Sybase.PowerBuilder.WPF.Controls.Tab
Microsoft.VisualStudio.PlatformUI.Shell.Controls.TabGroupControl
Toggle button System.Windows.Controls.Primitives.ToggleButton
Microsoft.Windows.Controls.Ribbon.RibbonToggleButton         
Toolbar System.Windows.Controls.ToolBar
Sybase.PowerBuilder.WPF.Controls.Toolbar
Microsoft.VisualStudio.PlatformUI.VsToolBar
TrackBar System.Windows.Controls.Slider
Sybase.PowerBuilder.WPF.Controls.HTrackBar
Sybase.PowerBuilder.WPF.Controls.VTrackBar
Tree view System.Windows.Controls.TreeView
Sybase.PowerBuilder.WPF.Controls.TreeView

Recognizing Custom Controls

To command TestLeft to recognize your custom controls as WPF controls, cast your control to the interface of the appropriate type.

If your control does not fit the type of the control, for which the interface provides support, it may improperly respond to commands that TestLeft will send, and simulating user actions against your control may cause errors.

More Supported WPF Controls

See Also

Supported Controls

Highlight search results