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

RadButton rendering incorrectly when using ItemTemplate and ItemsSource in RadToolBar

1 Answer 98 Views
This is a migrated thread and some comments may be shown as answers.
Paul McNamara
Top achievements
Rank 1
Paul McNamara asked on 09 Jun 2011, 05:14 PM
I have slight rendering issue when using the toolbar like so:

<telerik:RadToolBar ItemsSource="{Binding Buttons}"  Name="tbMain" Grid.Row="0" Grid.Column="0" GripVisibility="Collapsed" OverflowButtonVisibility="Visible" Margin="0,0,0,0">
                    <telerik:RadButton  Visibility="{Binding Visible, Converter={StaticResource VisibilityConverter}}" Command="{Binding Command}" ToolTipService.ToolTip="{Binding ToolTip}">
                        <StackPanel Orientation="Horizontal" >
                            <Image Height="16" Width="16" Source="{Binding SmallImage}"></Image>
                            <TextBlock VerticalAlignment="Center" Text="{Binding Label}"  Padding="4,0,0,0"></TextBlock>

The buttons render how they normally do outside a toolbar and not sans-border like they do if I just declare a button in the normal fashion inside the toolbar element
Is this a bug or if not is there something I should be doing that I'm not?

Thanks in advance,


1 Answer, 1 is accepted

Sort by
Petar Mladenov
Telerik team
answered on 14 Jun 2011, 06:41 PM
Hello Paul McNamara,

Just a final step is needed in order to get the desired result. The re-defined style of the RadButton must be applied explicitly in the ItemTemplate. I modified the project from this blog post in order to use RadButton instead of Button. So please give it a try and let us know if this worked in your scenario.

All the best,
Petar Mladenov
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
Asked by
Paul McNamara
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question