Header Text Left & Right

2 posts, 0 answers
  1. SUNNY
    SUNNY avatar
    1 posts
    Member since:
    May 2011

    Posted 01 Jul 2012 Link to this post

    I want my context menu item to have Text on left and keyboard shortcut on right. I dont want to give fixed width as my Text size can increase/decrease based on localized string

    I tried putting Grid but the Width of the Grid is not getting 100% of the Item. 

                        <Grid >
                                <ColumnDefinition Width="1*"/>
                                <ColumnDefinition Width="Auto"/>

                            <TextBlock Text="Bigger Globalizeddddddddddd  TExt"  />
                            <TextBlock Text="Shift + Insert" Grid.Column="1" />
                        <Image Source="someicon"/>

    Is there any way we can add additional column to context menu item just as image column so it always come on right seperate from header?

    Or is there any solution to this problem?

  2. Dani
    Dani avatar
    848 posts

    Posted 02 Jul 2012 Link to this post

    Hello Sunny,

    You can simply set the HorizontalContentAlignment property of the RadMenuItem to Stretch. The Grid will then stretch to the available space.

    Hope this helps.

    All the best,
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Back to Top