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

Change the RadialMenu default Button Icon

1 Answer 139 Views
RadialMenu
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 28 Jan 2016, 01:59 PM
I've looked around and can't really figure out how to do this. Anyone have any ideas? I just want to change the gear looking image to something like a label. Is this possible?

1 Answer, 1 is accepted

Sort by
0
Masha
Telerik team
answered on 01 Feb 2016, 07:19 AM
Hello Robert,

In order to change the image of RadialMenuButton you need to modify the ContentTemplate and BackContentTemplate setters of it. You can put inside whatever you like. Please check the code snippet bellow :

<Style  TargetType="telerik:RadialMenuButton" BasedOn="{StaticResource RadialMenuButtonStyle}">
    <Setter Property="ContentTemplate">
        <Setter.Value>
            <DataTemplate>
                <TextBlock Text="Open" />
            </DataTemplate>
        </Setter.Value>
    </Setter>
    <Setter Property="BackContentTemplate">
        <Setter.Value>
            <DataTemplate>
                <TextBlock Text="Back" />
            </DataTemplate>
        </Setter.Value>
    </Setter>
</Style>

I hope this helps.

Regards,
Masha
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
RadialMenu
Asked by
Robert
Top achievements
Rank 1
Answers by
Masha
Telerik team
Share this question
or