Hi,
I came across this scenario that appears to be a bug. When I bind a series of items to a RadTabControl that is not wide enough to show them the scroll buttons do not appear until I resize the window. This is the simplest way to duplicate:
XAML:
<Window x:Class="Workbench.RadTabControlTest"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:Controls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation" Title="RadTabControlTest" Height="400" Width="500">
<Grid>
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<Button
Width="125"
Height="25"
Click="Button_Click">Set Items</Button>
<Controls:RadTabControl
x:Name="tabs"
Width="250"
Height="150"
Grid.Row="1"
/>
</Grid>
</Window>
And the code behind:
public partial class RadTabControlTest: Window
{
public RadTabControlTest()
{
InitializeComponent();
}
private void Button_Click(object sender, RoutedEventArgs e)
{
tabs.ItemsSource = new[] {"one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten"};
}
}
I am using the latest release and the project is .NET 4.0.
Am I doing something wrong?
Cheers,
Jose