Wpf Docking Control with UI Automation compatibility - wpf

We have slowly been creating UI Automation tests using Ranorex on our product but have ran into several problems.
We are using Telerik Wpf controls (TabControl, TreeView, Grid and Docking) and so far we've only been able to test the TreeView and Grid using Ranorex. We replaced the TabControl for the standard Wpf TabControl which works with Ranorex. However the Docking control does not work and of course there is no standard out of the box Wpf Docking control for us to use instead.
My question is this: Does anybody know of any Wpf Docking controls that can be tested using an UI Automation tool (preferably Ranorex)?
I found AvalonDock, which at first looked promising, but according to this thread on their site it doesn't support UI Automation :(
Cheers for any comments,
Siy

As of now, Telerik has their own product that supports UI automation for WPF - Telerik Test Studio - including RadDocking control.

Related

Using both Telerik UI Controls and WPF Controls With Same Look&Feel

I would like to use both Telerik WPF UI Controls and WPF own controls in the same project. I think WPF is quite good and I need only a few controls and themes from Telerik. However, when I mix them, not all WPF controls benefit from the themes of Telerik. I read that, Telerik only support a few of WPF controls like TextBox and etc. However, I could not find a way to achieve a WPF Window with a looking like RadWindow. I have been searching and found some answers about this topic, but I think they are a little bit disorganized.
In brief, I would like to use styles from Telerik for also other WPF Controls (non-Telerik ones), but I am not sure whether it is possible or not? When I use WPF Window and RADProgressBar together, of course it does not look very good. If mixing is not a good idea I am considering completely switching to WPF. I do not have much experience with Telerik and I do not want to struggle in a mess due to this mixed environment. I want to use both if it is possible to achieve a unified style for both controls (Telerik and non-Telerik).
Take a look at MahApps Metro (http://mahapps.com/), a WPF control toolkit that has styles to give your application a metro feel, as that is what a lot of the Telerik UI kit does as far as I can tell.

Using WPF controls in a Surface application

I'm needing a TreeView control in our surface application. Situation is ive already created a TreeView implementation using infragistics XamlDataTree. Im wondering whether this control set can be used in a Surface application (being that it is a WPF app under the hood)?
Question also in general can you reuse standard WPF controls in the surface environment?
Also is there a tool already in the Surface SDK suite that would suit a TreeView style layout?
Thanks in advance
Don't know about the XamlDataTree, but in general, you can use any WPF control in a Surface Presentation Layer Application.

Winforms toolbox tools for WPF

I'm new to WPF and I'm wondering is there anyway to have elements from Winforms toolbox in WPF. I mean the Winforms toolbox has a lot of elements and they're not present in WPF toolbox. for example something like PerformanceCounter in Winforms toolbox is not found in WPF toolbox.
thanks in advance
There are some controls that didn't get represented in WPF, but you can use WindowsFormsHost. As the name indicates, it's purpose is to host the Windows Forms elements.
Walkthrough: Hosting a Windows Forms Control in WPF
I would add that things like PerformanceCounter you can use in code, rather than placing it on a form. Other elements which do have a UI purpose can be placed inside a WindowsFormsHost control. I do this with ReportViewer -- it's a Windows Forms control that has no WPF equivalent.

WPF UI Automation With Infragistics Controls

Does anyone have any good pointers/examples/links for writing WPF UI automation tests with applications utilising Infragistics controls?
CodedUI, that comes with Visual Studio Premium/Ultimate editions, seems to work fine with most of the controls
I have used UI Automation and TestStack.White with Infragistics. The White framework is built on top of MS UI Automation famework so you get best of both worlds.
Example links are:
WPF ItemsControl with TestStack White
teststackwhite
UI Automation Overview

changing Visibility to hosted winForms element in wpf application

I have ReportViewer winForms control for showing Microsoft Reports in my WPF application hosted over WindowsFormsIntegration.
When the MouseDown event of my textBlock triggers, I would like it to fade lets say from 0 to 100 visability, like some other elements in my Window. It doesn't, so I was wondering is it the same for all hosted controls or this one specific and how can it be solved?
Regards,
Ivan
The WindowsFormsHost supports Transparency. But some WinForms Controls do not.
See the Supported Scenarios in Windows Presentation Foundation and Windows Forms Interoperation article on MSDN. Especially the first row in the "Behaviour" table:
Some Windows Forms controls do not
support transparency. For example, the
TextBox and ComboBox controls will not
be transparent when hosted by WPF.

Resources