Content text position?

3 posts, 0 answers
  1. Robert
    Robert avatar
    33 posts
    Member since:
    May 2011

    Posted 27 Apr 2013 Link to this post

    Is there a way to move the content text (top, bottom, left, right) in relation to the image? I am trying to achieve a circular "+" button with content text to the right of the image.
  2. Valentin.Stoychev
    Valentin.Stoychev avatar
    2198 posts

    Posted 02 May 2013 Link to this post

    Hi Robert,

    The only way will be to edit the control template and to move the contentpresenter element to the position you desire. There is no property that is doing this out of the box.

    Regards, Valentin.Stoychev
    the Telerik team
    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
  4. Robert
    Robert avatar
    1 posts
    Member since:
    Jan 2013

    Posted 21 Sep 2013 Link to this post

    Thanks Valentin. I was able to do it as suggested, but editing the template and puttong the image and text into separate columns in the grid rather than separate rows. Worked perfectly.

    <Image x:Name="PART_ButtonImage" CacheMode="BitmapCache" Stretch="None" Grid.Column="0"/>
    <ContentControl x:Name="ContentControl" ContentTemplate="{TemplateBinding ContentTemplate}" Grid.Column="1" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="10,0,0,0"/>

Back to Top