Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Slider > RadSlider contained in RadToolBar

Not answered RadSlider contained in RadToolBar

Feed from this thread
  • Kareema avatar

    Posted on Sep 16, 2011 (permalink)

    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?

    Reply

  • Miro Miroslavov Miro Miroslavov admin's avatar

    Posted on Sep 21, 2011 (permalink)

    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 >>

    Reply

  • Kareema avatar

    Posted on Sep 21, 2011 (permalink)

    Hi Miro

    Thanks for the reply! This worked perfectly.

    Kareema

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Slider > RadSlider contained in RadToolBar
Related resources for "RadSlider contained in RadToolBar"

WPF Slider Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]