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

RadMenuItem with image on top and text below

2 Answers 226 Views
Menu
This is a migrated thread and some comments may be shown as answers.
OD
Top achievements
Rank 1
OD asked on 15 Mar 2018, 04:27 PM

Hello,

Is it possible to achieve this like on the attached file ?

Thanks in advance.

Regards.

2 Answers, 1 is accepted

Sort by
0
OD
Top achievements
Rank 1
answered on 16 Mar 2018, 09:00 AM

I've found it by myself,

For those who are interested here is my code :

static ressource

<sys:Double x:Key="HeightAndWidth">150</s

 

Namespace needed for the static ressource

xmlns:sys="clr-namespace:System;assembly=mscorlib"

 

And the radmenu itself

<telerik:RadMenuItem DropDownPlacement="Right" Height="{StaticResource HeightAndWidth }" IconColumnWidth="{StaticResource HeightAndWidth }" >
                                <telerik:RadMenuItem.Icon>
                                    <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center"  >
                                        <Image DockPanel.Dock="Top"  Width="48" Height="48" Margin="0,5" Source="./Images/Import.png" HorizontalAlignment="Center"   />
                                        <TextBlock Width="{StaticResource HeightAndWidth }" DockPanel.Dock="Bottom" TextAlignment="Center" Text="Importer une compétition" TextWrapping="WrapWithOverflow" VerticalAlignment="Center" />
                                    </StackPanel>
                                </telerik:RadMenuItem.Icon>                               
                            </telerik:RadMenuItem>
0
Dinko | Tech Support Engineer
Telerik team
answered on 20 Mar 2018, 09:08 AM
Hello Jean-Marc,

I am happy to hear that you manage to found a solution for your scenario. And thank you for sharing your solution with the community.

If you have any other questions, you can open a new thread with your questions inside.

Regards,
Dinko
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
Menu
Asked by
OD
Top achievements
Rank 1
Answers by
OD
Top achievements
Rank 1
Dinko | Tech Support Engineer
Telerik team
Share this question
or