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

RadDropDownButton can I set an Image?

1 Answer 69 Views
Buttons
This is a migrated thread and some comments may be shown as answers.
George
Top achievements
Rank 1
George asked on 23 Jul 2015, 11:48 AM

Hi, I am trying to use a RadDropDownButton inside a RadToolBar control.

 

I need to display an image on the RadDropDownButton, the same way I can with a regular button like the example below:

 

<Button Name="btn_ONLINE">
                <StackPanel Orientation="Horizontal">
                    <Image Source="/Images/OnLine2Red24.png" />
                    <TextBlock Text="Offline" Margin="5,0,0,0" />
                </StackPanel>

</Button>

 

Is there any way I can achieve the same result?

 

Thanks,

 

1 Answer, 1 is accepted

Sort by
0
Sia
Telerik team
answered on 28 Jul 2015, 10:28 AM
Hello George,

You can use RadDropDownButton to achieve what is needed:
<telerik:RadDropDownButton>
    <StackPanel Orientation="Horizontal">
        <Image Source="/Images/OnLine2Red24.png" />
        <TextBlock Text="Offline" Margin="5,0,0,0" />
    </StackPanel>
    <telerik:RadDropDownButton.DropDownContent>
        <Button BorderThickness="0">DropDownContent</Button>
    </telerik:RadDropDownButton.DropDownContent>
</telerik:RadDropDownButton>


Regards,
Sia
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
Buttons
Asked by
George
Top achievements
Rank 1
Answers by
Sia
Telerik team
Share this question
or