Change the RadialMenu default Button Icon

2 posts, 0 answers
  1. Robert
    Robert avatar
    3 posts
    Member since:
    Dec 2015

    Posted 28 Jan Link to this post

    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?
  2. Masha
    Admin
    Masha avatar
    355 posts

    Posted 01 Feb Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top