Problem styling buttons buttons in the InputPrompt

2 posts, 0 answers
  1. Piali
    Piali avatar
    5 posts
    Member since:
    Jan 2008

    Posted 01 Oct 2013 Link to this post

    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
  2. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 04 Oct 2013 Link to this post

    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.
  3. DevCraft banner
Back to Top