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
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.
<
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"
/>
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
Howdy All,
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.
Does the version of Telerik WPF supports v.2014.3.1202.45 telerikQuickStart?
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
Is it possible to have 1 tooltip for the SelectionStart 'gripper' of the slider, and an other tooltip for the SelectionEnd 'gripper'?