We have the latest Silverlight 4 version of the RAD Controls.
I am able to create the OutlookBarItems in code using this.outlookBar1.Items.Add(item),
But when I try to do this in Blend XAML, I get this weird error message (at the bottom) after adding more than a couple of items.
<telerikNavigation:RadOutlookBar x:Name="RadOutlookBar1" d:LayoutOverrides="HorizontalAlignment" Margin="0,72,0,0">
<telerikNavigation:RadOutlookBarItem Header="Title 1">
<Grid Background="Transparent" Height="220" VerticalAlignment="Top">
<TextBlock Text="Title 1 Content"/>
</Grid>
</telerikNavigation:RadOutlookBarItem>
<telerikNavigation:RadOutlookBarItem Header="Title 2" IsSelected="True">
<Grid Background="Transparent" Height="220" VerticalAlignment="Top">
<TextBlock Text="Title 2 Content"/>
</Grid>
</telerikNavigation:RadOutlookBarItem>
<telerikNavigation:RadOutlookBarItem Header="Title 3">
<Grid Background="Transparent" Height="220" VerticalAlignment="Top">
<TextBlock Text="Title 3 Content"/>
</Grid>
</telerikNavigation:RadOutlookBarItem>
</telerikNavigation:RadOutlookBar>
Error Message:
An Exception was thrown.
KeyNotFoundException: The given key was not present in the dictionary.
StackTarace
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Telerik.Windows.Controls.OutlookBar.MinimizedOutlookBarItem.Telerik.Windows.Controls.OutlookBar.OutlookBarItem.set_Location(OutlookBarItemPosition value)
at Telerik.Windows.Controls.OutlookBar.OutlookBarPanel.ArrangeOverride(Sixe finalSize)
at System.Windows.FrameworkElement.ArrangeOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)
InnerException: None
FYI: I was not getting this error earlier when I was working with the trial version till two days back.
Thanks.