This is a migrated thread and some comments may be shown as answers.

Horizontal RadToolBar resize problem

1 Answer 100 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Aleksey Zdanovich
Top achievements
Rank 1
Aleksey Zdanovich asked on 25 Mar 2010, 07:46 AM
Hi,
I create a toolbar with a four buttons. If I append the buttons to the toolbar in XAML, all OK.

 

<tn:RadToolBar UseLayoutRounding="True" Grid.Row="0"   
x:Name="tbMain1"&gt;<BR>&lt;Button Content="Button 1"   
tn:RadToolBar.OverflowMode="Never"/&gt;<BR>&lt;Button Content="Button 2"   
tn:RadToolBar.OverflowMode="Never"/&gt;<BR>&lt;Button Content="Button 3"   
tn:RadToolBar.OverflowMode="Never"/&gt;<BR>&lt;Button Content="Button 4"   
tn:RadToolBar.OverflowMode="Never"/&gt;<BR>&lt;/tn:RadToolBar&gt; 

Now, I'm defining a DataTemplate for the toolbar...

&lt;tn:RadToolBar UseLayoutRounding="True" Grid.Row="0"   
x:Name="tbMain"&gt;<BR>&lt;tn:RadToolBar.ItemTemplate&gt;<BR>&lt;DataTemplate&gt;<BR>&lt;Button   
Content="{Binding Path=Caption}"   
tn:RadToolBar.OverflowMode="Never"/&gt;<BR>&lt;/DataTemplate&gt;<BR>&lt;/tn:RadToolBar.ItemTemplate&gt;<BR>&lt;/tn:RadToolBar&gt; 


... and assign ItemSource property in code-behind file...

IList&lt;ItemViewModel&gt; models = new List&lt;ItemViewModel&gt;<BR>{<BR>new   
ItemViewModel(ItemType.Command, "Command 1"),<BR>new   
ItemViewModel(ItemType.Tool, "Tool 1"),<BR>new ItemViewModel(ItemType.Command,   
"Command 2"),<BR>new ItemViewModel(ItemType.Tool, "Tool   
2")<BR>};<BR>tbMain.ItemsSource = models;<BR> 

Now, I'm resizing the browser window so that last button on the toolbar is hidden.
After the browser window is maximized, the number of buttons is doubled.

SL 3, IE 8, Telerik 2009.3.1322.1030

1 Answer, 1 is accepted

Sort by
0
Bobi
Telerik team
answered on 26 Mar 2010, 12:59 PM
Hello Aleksey Zdanovich,

We are aware of this and apologize for the inconvenience caused.
Here you can find its current status of this issue:
http://www.telerik.com/support/pits.aspx#/public/silverlight/984

Greetings,
Bobi
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
ToolBar
Asked by
Aleksey Zdanovich
Top achievements
Rank 1
Answers by
Bobi
Telerik team
Share this question
or