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

Content text position?

2 Answers 33 Views
ImageButton
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Robert
Top achievements
Rank 1
Robert asked on 27 Apr 2013, 09:53 PM
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 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 02 May 2013, 07:42 AM
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.
0
Robert
Top achievements
Rank 1
answered on 22 Sep 2013, 02:53 AM

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"/>


Tags
ImageButton
Asked by
Robert
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Robert
Top achievements
Rank 1
Share this question
or