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

[Solved] Problem styling buttons buttons in the InputPrompt

1 Answer 52 Views
InputPrompt
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Piali
Top achievements
Rank 1
Piali asked on 02 Oct 2013, 12:26 AM
Hi,

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

1 Answer, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 04 Oct 2013, 09:04 AM
Hi Piali,

Could you please send us a project reproducing the issue, including all missing resources such as images. Also, could you please tell me what kind of content you feed to the ContentControl?
Thank you in advance for your cooperation. 

Regards,
Kiril Stanoev
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
InputPrompt
Asked by
Piali
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Share this question
or