I have the following XAML:
<ContentControl Grid.Row="4" x:Name="PART_ButtonsContainer" HorizontalContentAlignment="Left">
<ContentControl.ContentTemplate>
<DataTemplate>
<!--<Border BorderThickness="2" BorderBrush="BlueViolet">-->
<StackPanel x:Name="PART_ButtonsPanel" Orientation="Horizontal" HorizontalAlignment="Left">
<StackPanel.Resources>
<Style x:Key="RadInputPromptControl_ButtonTemplate" TargetType="Button">
<Setter Property="Width" Value="Auto"/>
<Setter Property="HorizontalAlignment" Value="Left"/>
</Style>
</StackPanel.Resources>
<!--<telerikPrimitives:RadWrapPanel x:Name="PART_ButtonsPanel">-->
<telerikPrimitives:RadImageButton x:Name="DeleteButton" ButtonBehavior="ToggleButton" Click="DeleteButton_Click" ButtonShape="Image"
RestStateImageSource="/Images/LocationImages/Delete_1.png" PressedStateImageSource="/Images/LocationImages/Delete_1.png" VerticalAlignment="Center" HorizontalAlignment="Left" Style="{StaticResource RadInputPromptControl_ButtonTemplate}">
</telerikPrimitives:RadImageButton>
<!--</telerikPrimitives:RadWrapPanel>-->
</StackPanel>
<!--</Border>-->
</DataTemplate>
</ContentControl.ContentTemplate>
</ContentControl>
And I have an output which clips the "Cancel" button. I tried to apply the style template but that did not work.
Thanks,
Piali