Hi Team,
I have RadTabItem with ContentControl inside it. Coded UI Test is not able to identify the controls placed inside. I am referencing the telerik assemblies from Binaries.NoXaml folder under 4.5 version.
Can anyone help in resolving it?
Following is the Xaml template:
I have RadTabItem with ContentControl inside it. Coded UI Test is not able to identify the controls placed inside. I am referencing the telerik assemblies from Binaries.NoXaml folder under 4.5 version.
Can anyone help in resolving it?
Following is the Xaml template:
<
telerik:RadTabControl
Name
=
"MainTabControl"
Visibility
=
"Visible"
TabStripPlacement
=
"Left"
SelectionChanged
=
"MainTabControl_SelectionChanged"
>
<
telerik:RadTabItem
Header
=
"Define Manual Columns"
Visibility
=
"Visible"
DataContext
=
"{Binding Customers}"
>
<
StackPanel
>
<
ContentControl
Content
=
"{Binding}"
Grid.Row
=
"0"
Grid.RowSpan
=
"2"
Grid.Column
=
"1"
Width
=
"Auto"
HorizontalAlignment
=
"Stretch"
>
<
ContentControl.Style
>
<
Style
TargetType
=
"ContentControl"
>
<
Style.Triggers
>
<
DataTrigger
Binding
=
"{Binding ReceiveNewsletter}"
Value
=
"True"
>
<
Setter
Property
=
"ContentTemplate"
>
<
Setter.Value
>
<
DataTemplate
>
<
StackPanel
>
<
TextBlock
x:Name
=
"TestPanel1"
Text
=
"Test Panel"
Height
=
"50"
Width
=
"50"
VerticalAlignment
=
"Top"
Foreground
=
"Black"
Margin
=
"5"
/>
<
TextBlock
x:Name
=
"TestPanel2"
Text
=
"Test Panel2"
Height
=
"50"
Width
=
"50"
Foreground
=
"Black"
Margin
=
"5"
/>
<
StackPanel
x:Name
=
"ButtonsStack"
Orientation
=
"Horizontal"
HorizontalAlignment
=
"Right"
VerticalAlignment
=
"Bottom"
Margin
=
"0,100,5,0"
>
<
telerik:RadButton
x:Name
=
"EditStyle"
ToolTipService.ToolTip
=
"Edit"
Height
=
"25"
Width
=
"25"
>
</
telerik:RadButton
>
<
telerik:RadButton
x:Name
=
"CopyStyle"
ToolTipService.ToolTip
=
"Copy"
Height
=
"25"
Width
=
"25"
>
</
telerik:RadButton
>
<
telerik:RadButton
x:Name
=
"CancelSave1"
ToolTipService.ToolTip
=
"Delete"
Height
=
"25"
Width
=
"25"
>
</
telerik:RadButton
>
</
StackPanel
>
</
StackPanel
>
</
DataTemplate
>
</
Setter.Value
>
</
Setter
>
</
DataTrigger
>
<!-- EDIT TEMPLATE -->
<
DataTrigger
Binding
=
"{Binding Temp}"
Value
=
"True"
>
<
Setter
Property
=
"ContentTemplate"
>
<
Setter.Value
>
<
DataTemplate
>
<
StackPanel
HorizontalAlignment
=
"Stretch"
Orientation
=
"Vertical"
>
</
StackPanel
>
</
DataTemplate
>
</
Setter.Value
>
</
Setter
>
</
DataTrigger
>
</
Style.Triggers
>
</
Style
>
</
ContentControl.Style
>
</
ContentControl
>
</
StackPanel
>
</
telerik:RadTabItem
>
</
telerik:RadTabControl
>