Good day,
I had a Silverlight demo project build on top of prism illustrating UI composition.
One of the key members of my demo was a TabControl with a region which gets populated OnDemand.
I've migrated the project to use Telerik controls and one change I made was switching from TabControl to RadTabControl (I am using Telerik controls vs 2011.1.315.1040) and now a couple of things that worked before stopped working now.
The RadTabControl code I use:
Any help would be greatly appreciated.
Thanks in advance,
Dragos
I had a Silverlight demo project build on top of prism illustrating UI composition.
One of the key members of my demo was a TabControl with a region which gets populated OnDemand.
I've migrated the project to use Telerik controls and one change I made was switching from TabControl to RadTabControl (I am using Telerik controls vs 2011.1.315.1040) and now a couple of things that worked before stopped working now.
- For the TabItem.ItemContainerStyle I had the following setting:
<
Setter
Property
=
"HeaderTemplate"
>
<
Setter.Value
>
<!--Display the child view name on the tab header-->
<
DataTemplate
>
<!--for some reason this does not work with radTabControl-->
<
TextBlock
Text
=
"{Binding ViewName}"
/>
</
DataTemplate
>
</
Setter.Value
>
</
Setter
>
- I populated the TabControl with the following code
Dim
lReg
As
IRegion =
Me
.mRegionManager.Regions(
"RequestsTabReqion"
)
Dim
lRqViewID
As
String
= CommonDefinitions.Constants.BuildRqViewName(iRqId)
Dim
lInfoCardsView
As
RequestDetailsView = TryCast(lReg.GetView(lRqViewID), RequestDetailsView)
If
lInfoCardsView
Is
Nothing
Then
lInfoCardsView =
New
RequestDetailsView()
Dim
lRegMan1
As
IRegionManager = lReg.Add(lInfoCardsView, lRqViewID,
True
)
lInfoCardsView.SetRegionManager(lRegMan1)
lInfoCardsView.PopulateWithInfoCards()
mRegionManager.Regions(
"RequestsTabReqion"
).Activate(lInfoCardsView)
Else
mRegionManager.Regions(
"RequestsTabReqion"
).Activate(lInfoCardsView)
End
If
With the RadTabControl the tab is created but the content area associated to the Tab is not shown. Also the repositioning on the correct tab no longer works.
How can I get this to work with the RadTabControl?
The RadTabControl code I use:
<
telerik:RadTabControl
Grid.Row
=
"1"
AutomationProperties.AutomationId
=
"RequestTabView"
DropDownDisplayMode
=
"Visible"
Margin
=
"2,2,2,2"
prism:RegionManager.RegionName
=
"RequestsTabReqion"
BackgroundVisibility
=
"Collapsed"
prism:RegionManager.RegionContext
=
"{Binding CurrentEmployee}"
TabStripPlacement
=
"Top"
BorderThickness
=
"3"
BorderBrush
=
"#FF6B43A9"
Background
=
"{x:Null}"
>
</
telerik:RadTabControl
>
Any help would be greatly appreciated.
Thanks in advance,
Dragos