RadButton Content alignment

2 posts, 0 answers
  1. Amit Patel
    Amit Patel avatar
    71 posts
    Member since:
    Sep 2009

    Posted 28 Oct 2010 Link to this post

    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.

    <telerik:RadButton Height="47" Margin="178,167,211,0" VerticalAlignment="Top">
        <TextBox Text="Test" HorizontalAlignment="Left"/>
  2. Kiril Stanoev
    Kiril Stanoev avatar
    1512 posts

    Posted 28 Oct 2010 Link to this post

    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">
            <TextBox Text="Test" />

    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
Back to Top