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

RadButton Content alignment

1 Answer 243 Views
Buttons
This is a migrated thread and some comments may be shown as answers.
Amit Patel
Top achievements
Rank 1
Amit Patel asked on 28 Oct 2010, 02:37 PM
I was trying to align the content fo of the RadButton, but was not able to. Is there a way to align it. See the sample code blow.
Thanks,
Amit

<telerik:RadButton Height="47" Margin="178,167,211,0" VerticalAlignment="Top">
   <telerik:RadButton.Content>
    <TextBox Text="Test" HorizontalAlignment="Left"/>
   </telerik:RadButton.Content>   
  </telerik:RadButton>

1 Answer, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 28 Oct 2010, 02:56 PM
Hi Amit,

Instead of setting HorizontalAlignment to the TextBlock, you need to set HorizontalContentAlignment to the RadButton:

<telerik:RadButton Height="47" Margin="178,167,211,0" VerticalAlignment="Top" HorizontalContentAlignment="Left">
    <telerik:RadButton.Content>
        <TextBox Text="Test" />
    </telerik:RadButton.Content>
</telerik:RadButton>


Regards,
Kiril Stanoev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Buttons
Asked by
Amit Patel
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Share this question
or