Telerik Forums
UI for WPF Forum
1 answer
315 views
I've extended the base slider. And I've drawn lines on the integral values (i.e. 1,2,3,4). And I've changed the thumb shape to ellipse. Now as you can see in the image, the ellipse moves from the center according to the value. I'v tried changing the coordinates received from the slider thumb to point in center but all in vain.
Milena
Telerik team
 answered on 13 Dec 2016
1 answer
153 views

I need a control similar to Slider but something that I can DataBind to a list of custom objects.

I need to allow the user to increase/decrease time on a chart  3years 1year 6 months 1 month hours minutes.....

I do want the functionality of slider where user can click +/- and and i can get the next object in the list, Also i would like to display the time that the user selected

Dinko | Tech Support Engineer
Telerik team
 answered on 30 Aug 2016
1 answer
273 views

Dear team,

I need to create an slider with multiple ranges. It means that I need a minimum of 4 thumbs and I don't know if this behavior is possible with RadSlider.

Telerik's slider webpage annouces that "Single or Multiple Thumbs Support". Multiple means 2? or more than 2?

Thanks in advance.

 

Martin Ivanov
Telerik team
 answered on 07 Jun 2016
6 answers
370 views
I'm trying to use the RadSlider control with a tooltip to indicate the value as the thumb is dragged. This behavior can be seen with a base WPF Slider control when specifying the AutoToolTipPlacement property.

My RadSlider uses the 'IsDeferredDraggingEnabled="True"' but I still want the tooltip to display the value where the thumb is currently if the user has the mouse pressed, and have the binding source update when the user is done dragging. Also, I need control over formatting the tooltip based on the value. An example of what I am doing currently is shown below.

<telerik:RadSlider Padding="2" Width="154"
                        Minimum="{Binding MinSpeedValue}" Value="{Binding SpeedValue}" Maximum="{Binding MaxSpeedValue}"
                        LargeChange="1" SmallChange="1" IsMoveToPointEnabled="True" TickFrequency="1" IsSnapToTickEnabled="True"
                        ToolTip="{StaticResource SpeedTooltip}"
                        IsDeferredDraggingEnabled="True"/>

Any help would be appreciated.
Douwe
Top achievements
Rank 1
 answered on 25 May 2016
3 answers
85 views

Hello All,

I would first like to thank Martin again, he's sample got me pretty far.  In fact in the first sample included below, I got my Labels and the slider bar behaving as I would like.  When I tried porting over to my main application (the second sample below Sample2), I got some BUT not all behavior...  Namely, the trackbar is not coloring correctly, nor does it have the proper thumbs, for the selector.  I see in Martin's sample code that there is an application resource defined in the app.xaml file.  

 

<Application x:Class="BaseApplicationProject.App"
      
               xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             
 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             
StartupUri="MainWindow.xaml">
    <
Application.Resources>
        <
ControlTemplate x:Key="largeDecreaseButtonTemplate" TargetType="{x:Type RepeatButton}">
            <
Grid Background="{TemplateBinding Background}"/>
        </
ControlTemplate>
    </
Application.Resources>
</
Application>

 

 

However, my lack of familiarity with this has caused some problems.  You see in my main app the App.xaml file has a ResourceDictionary defined:

 

<Application x:Class="Worms.App"
     
              xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
     
              Startup="OnStartup" Exit="OnExit">
    <
Application.Resources>
        <
ResourceDictionary>
            <
ResourceDictionary.MergedDictionaries>
               
 <ResourceDictionary Source="/Fluent;Component/Themes/Generic.xaml" />                 <ResourceDictionary Source="/Fluent;Component/Themes/Office2010/Silver.xaml" />                 <ResourceDictionary Source="Theme/Colors/Silver.xaml"/>                 <ResourceDictionary Source="Theme/Theme.xaml"/>                 <ResourceDictionary Source="Theme/Resources.xaml"/>                 <ResourceDictionary Source="pack://application:,,,/AvalonDock.Themes;component/themes/dev2010.xaml"/>                 <ResourceDictionary Source="Theme/AvalonDockTheme.xaml"/>
            </
ResourceDictionary.MergedDictionaries>
        </
ResourceDictionary>
    </
Application.Resources>
</
Application>

 

So, I tried to put the ControlTemplate in one of the included files of the ResourceDictionary, more precisely into either Theme/Theme.xaml or Theme/Resources.xaml.  Neither one seemed to work.  The problem I get is a Null reference in the SliderUtilities.cs file in the slider_Loaded function:

 

1.static void slider_Loaded(object sender, RoutedEventArgs e)
2.{
3.    var slider = (RadSlider)sender;
4.    var button = slider.ChildrenOfType<RepeatButton>().FirstOrDefault(x => x.Name == "LargeDecreaseButton");
5.    button.Template = (ControlTemplate)Application.Current.Resources["largeDecreaseButtonTemplate"];
6.     
7.    slider.Tag = button;
8.}

 

When I step through this function in Martin's sample after line 4 is executed, button is instantiated to a good value.  In my main app, when I step through the same function, button is null...  Not Good!  Also the slider variable in Martin's sample has an instantiated decreaseButton and increaseButton of type System.Windows.Controls.Primitives.RepeatButton.  In my main app, they are both null....

Any ideas why the slider control/variable is NOT picking up the ControlTemplate for the repeatbuttons???

 

Thanks again in advance!,

 

Kevin Orcutt
Senior Software Engineer

Wurth Electronics ICS, Inc.
7496 Webster St., Dayton, OH 45414
Tel: 937.415.7700 
Toll Free: 877.690.2207
Fax: 937.415.7710
Email: kevin.orcutt@we-ics.com
http://www.we-ics.com

Kiril Vandov
Telerik team
 answered on 11 Mar 2016
6 answers
123 views

Howdy All,

     

Kevin
Top achievements
Rank 1
 answered on 08 Mar 2016
1 answer
91 views

 We have consumed RadSlider control in one of our application.While automating that , Rad Slider Control displayed in Inspector tool as UICustom control and Object is found through automation. But slider control properties like position, maximum ,minimum and Slide are not showed.

If we declare the control as UISlider in automation, slider properties are showed but RadSlider control is not identified as it is UICustom control.

Could you please Provide new RadSlider control with UISlider type Instead UICustom. 

 

 

Milena
Telerik team
 answered on 03 Feb 2016
1 answer
78 views

Does the version of Telerik WPF supports v.2014.3.1202.45 telerikQuickStart?

 

 

Martin Ivanov
Telerik team
 answered on 20 Jan 2016
1 answer
141 views

Clicking on the Decrease/Increase Handles of a RadSlider normally changes the Slider by the amount of SmallChange.

But what if I have IsSnapToTickEnabled=True and ticks are not equidistant? In this case the buttons don't work properly. For example:

 

<telerik:RadSlider

Minimum="0" Maximum="10"

IsSnapToTickEnabled="True" 

SmallChange="2"

Ticks="2,4,8,13" />

 

leads to the problem that Increase ​Handle works well when navigating from tick 2 to 4, but then nothing more happens and no further click will bring the thump to tick 8 and 13. This is an incorrect behaviour, or am I wrong?

 

Peter, Germany

 

Dinko | Tech Support Engineer
Telerik team
 answered on 12 Nov 2015
2 answers
155 views

Is it possible to have 1 tooltip for the SelectionStart 'gripper' of the slider, and an other tooltip for the SelectionEnd 'gripper'?

 

Yoann
Top achievements
Rank 1
 answered on 22 Jul 2015
Narrow your results
Selected tags
Tags
+112 more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?