This question is locked. New answers and comments are not allowed.
I was attempting to use an RadToolBar and QuickAccessToolBar as an ItemsControl and found a problem.
Notice the collection of items contains 8 elements. If you run this app and resize the browser window (in an attempt to push the items into the overflow panel) and then expand the window, the items seem to randomly multiply. See my screenshot below.
Notice the collection of items contains 8 elements. If you run this app and resize the browser window (in an attempt to push the items into the overflow panel) and then expand the window, the items seem to randomly multiply. See my screenshot below.
using System.Windows.Controls;
using System.Collections.ObjectModel;
namespace SilverlightApplication12
{
public partial class MainPage : UserControl
{
public MainPage()
{
InitializeComponent();
ObservableCollection<
string
> TheList = new ObservableCollection<
string
>()
{
"btn1",
"btn2",
"btn3",
"btn4",
"btn5",
"btn6",
"btn7",
"btn8",
};
this.toolbar.ItemsSource = TheList;
}
}
}
<
UserControl
x:Class
=
"SilverlightApplication12.MainPage"
mc:Ignorable
=
"d"
xmlns:rad
=
"clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
xmlns:radnav
=
"clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
d:DesignHeight
=
"300"
d:DesignWidth
=
"400"
>
<
Grid
x:Name
=
"LayoutRoot"
Height
=
"30"
Background
=
"White"
>
<
radnav:RadToolBar
x:Name
=
"toolbar"
>
<
radnav:RadToolBar.ItemTemplate
>
<
DataTemplate
>
<
Button
Content
=
"{Binding}"
/>
</
DataTemplate
>
</
radnav:RadToolBar.ItemTemplate
>
</
radnav:RadToolBar
>
</
Grid
>
</
UserControl
>