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

RadSlider contained in RadToolBar

2 Answers 109 Views
Slider
This is a migrated thread and some comments may be shown as answers.
Kareema
Top achievements
Rank 2
Kareema asked on 16 Sep 2011, 12:24 PM
Hi

I'm fairly new to WPF. I'm trying to display a slider control between buttons on a tool bar.

I want my XAML to look something like this:

<telerik:RadToolBar>
                <telerik:RadButton ToolTip="This is a button to the the left of the slider">
                    <Image Source="/Icons/left_icon.png" />
                </telerik:RadButton>
                <telerik:RadSlider Value="5" Minimum="0" SmallChange="1" Maximum="100" />
                <telerik:RadButton ToolTip="This is a button to the right of the slider">
                    <Image Source="/Icons/right_icon.png"/>
                </telerik:RadButton>
            </telerik:RadToolBar>

This doesn't show me the slider at all. Does it need some special container or a special width set to it?

2 Answers, 1 is accepted

Sort by
0
Miro Miroslavov
Telerik team
answered on 21 Sep 2011, 09:19 AM
Hello Kareema,

 Because the ToolBar is trying to use the minimum required size of the controls inside, you need to specify explicit Width to the Slider... for example 100 if it suits your needs.

<telerik:RadSlider Value="5" Minimum="0" SmallChange="1" Width="100" Maximum="100" />

Regards,
Miro Miroslavov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Kareema
Top achievements
Rank 2
answered on 21 Sep 2011, 09:31 AM
Hi Miro

Thanks for the reply! This worked perfectly.

Kareema
Tags
Slider
Asked by
Kareema
Top achievements
Rank 2
Answers by
Miro Miroslavov
Telerik team
Kareema
Top achievements
Rank 2
Share this question
or