RadDropDownButton can I set an Image?

2 posts, 0 answers
  1. George
    George avatar
    62 posts
    Member since:
    Sep 2008

    Posted 23 Jul 2015 Link to this post

    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,

     

  2. Sia
    Admin
    Sia avatar
    667 posts

    Posted 28 Jul 2015 Link to this post

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