This question is locked. New answers and comments are not allowed.
Hello I have a problem with the RadPanelBar.
When I use it with databinding the scrool bar doesn't appear in RadPanelBarItem...
I use Telerik Q1 2012.
<
UserControl.Resources
>
<
Style
x:Key
=
"SimpleInvoicesStyle"
TargetType
=
"telerik:RadPanelBarItem"
>
<
Setter
Property
=
"VerticalContentAlignment"
Value
=
"Top"
/>
<
Setter
Property
=
"HorizontalContentAlignment"
Value
=
"Left"
/>
<
Setter
Property
=
"Header"
Value
=
"TEST BINDING"
/>
<
Setter
Property
=
"ItemsSource"
Value
=
"{Binding Items}"
/>
<
Setter
Property
=
"IsExpanded"
Value
=
"True"
/>
<
Setter
Property
=
"ItemTemplate"
>
<
Setter.Value
>
<
DataTemplate
>
<
ScrollViewer
>
<
Grid
>
<
Rectangle
Height
=
"300"
Width
=
"100"
Fill
=
"Pink"
/>
<
TextBlock
Text
=
"{Binding Value}"
/>
</
Grid
>
</
ScrollViewer
>
</
DataTemplate
>
</
Setter.Value
>
</
Setter
>
</
Style
>
<
ItemsPanelTemplate
x:Key
=
"ItemsPanelTemplate1"
>
<
telerik:RadWrapPanel
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Stretch"
/>
</
ItemsPanelTemplate
>
<
Style
x:Key
=
"containerStyle"
TargetType
=
"telerik:RadPanelBarItem"
>
<
Setter
Property
=
"ItemsPanel"
Value
=
"{StaticResource ItemsPanelTemplate1}"
/>
</
Style
>
</
UserControl.Resources
>
<
Grid
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"*"
/>
<
ColumnDefinition
Width
=
"*"
/>
</
Grid.ColumnDefinitions
>
<
telerik:RadPanelBar
Height
=
"200"
ExpandMode
=
"Multiple"
DropExpandDelay
=
"0"
ItemContainerStyle
=
"{StaticResource SimpleInvoicesStyle}"
ScrollViewer.HorizontalScrollBarVisibility
=
"Disabled"
ScrollViewer.VerticalScrollBarVisibility
=
"Disabled"
VerticalAlignment
=
"Top"
HorizontalContentAlignment
=
"Left"
BringIntoViewMode
=
"Header"
ItemsSource
=
"{Binding Items}"
Orientation
=
"Horizontal"
/>
<
telerik:RadPanelBar
Height
=
"200"
Grid.Column
=
"1"
ExpandMode
=
"Multiple"
DropExpandDelay
=
"0"
ScrollViewer.HorizontalScrollBarVisibility
=
"Disabled"
ScrollViewer.VerticalScrollBarVisibility
=
"Disabled"
VerticalAlignment
=
"Top"
HorizontalContentAlignment
=
"Left"
Orientation
=
"Horizontal"
>
<
telerik:RadPanelBarItem
Header
=
"TEST"
IsExpanded
=
"True"
VerticalAlignment
=
"Top"
HorizontalContentAlignment
=
"Left"
>
<
ScrollViewer
>
<
Grid
>
<
Rectangle
Height
=
"300"
Width
=
"100"
Fill
=
"Pink"
/>
<
TextBlock
Text
=
"TEST"
/>
</
Grid
>
</
ScrollViewer
>
</
telerik:RadPanelBarItem
>
</
telerik:RadPanelBar
>
</
Grid
>
How to have the same behavior as RadPanel without Binding?
Thank by advance.