Hello
I tried putting the 2009q2 dlls in the GAC and got the following error for the
"Telerik.Windows.Controls.Scheduler.Design.dll":
---------------------------
Assembly Cache Viewer - Install failed
---------------------------
Assembly 'Telerik.Windows.Controls.Scheduler.Design.dll' is required to be strongly named.
Hi,
I was wondering whether RadControls for WPF support UI Automation...
So I created very simple WPF application: I dragged four Rad controls on a form (RadDatePicker, RadTimePicker, RadMaskedTextBox and RadNumericUpDown). Then I assigned AutomationProperties.AutomationId for each of Rad controls (for RadDatePicker it was "datePicker", for RadTimePicker "timePicker", for RadMaskedTextBox "maskedTextBox" and for RadNumericUpDown "numUpDown").
Now in c# (in Program.cs to be precise) I written code like this (mainWindow is a AutomationElement which represents main application window):
PropertyCondition datePickerCondition = |
new PropertyCondition(AutomationElement.AutomationIdProperty, "datePicker"); |
AutomationElement datePicker = |
mainWindow.FindFirst(TreeScope.Element | TreeScope.Descendants, datePickerCondition); //It doesn't find anything |
AutomationPattern[] datePickerPattrens = |
datePicker.GetSupportedPatterns(); |
FindFirst method does not find anything, however It should if RadControls for WPF would support UI Automation. Out of four controls I've tested only RadNumericUpDown was found this way.
I've also checked my test application window using UISpy - only RadNumericUpDown had AutomationId properly assigned.
So my question are:
Am I doing something wrong?
If no, when will RadControls for WPF fully support UI Automation?
RadControls for WPF version used in sample application: 2009.2.701.35
Thanks for help
For Each item As RadTreeViewItem In RadTreeView1.Items
If CInt(item.Tag) = 3 Then
item.IsSelected =
True
Exit For
End If
Next
However I need to get the child items to the first treeview item
Thanks
<Grid> |
<Button Height="36" HorizontalAlignment="Right" Margin="0,11,177,0" Name="cmdBuscar" VerticalAlignment="Top" Width="36"> |
<Image Source="iconos/buscar.gif" Name="Image5" /> |
</Button> |
<ListBox Height="100" Margin="0,40,245,0" Name="ListBox1" DisplayMemberPath="NumeroIncidencia" VerticalAlignment="Top" /> |
<telerik:RadGridView x:Name="BuscarGrid" Margin="0,160,0,0" AutoGenerateColumns="False"> |
<telerik:RadGridView.Columns > |
<telerik:GridViewDataColumn IsReadOnly="True" Header="Numero Incidencia" UniqueName="NumeroIncidencia" Width="150"/> |
<telerik:GridViewDataColumn IsReadOnly="True" Header="Procedencia" UniqueName="DescripcionProcedencia" Width="120"/> |
<telerik:GridViewDataColumn IsReadOnly="True" Header="Observaciones" UniqueName="Observaciones" Width="300"/> |
</telerik:RadGridView.Columns> |
</telerik:RadGridView> |
</Grid> |
Private Sub cmdBuscar_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles cmdBuscar.Click |
Dim rd As New ReturnData.ReturnDataSoapClient |
Dim ds As DataSet |
ds = rd.ReturnDataset("SELECT NumeroIncidencia, DescripcionProcedencia, Observaciones FROM Incidencias") |
Me.BuscarGrid.ItemsSource = ds.Tables(0) |
Me.ListBox1.ItemsSource = Me.BuscarGrid.SelectedItems |
End Sub |