Commands Support

RadSideView allows you to attach commands that will be executed when the slide actions occurs. To do this you can use the Commands collection and add a custom SlideViewCommand for each custom action you want to execute. There is support for the SlidingToIndex and SlidedToIndex actions.

Example

This example shows how to add a custom command for the SlidingToIndex action.

CS

public class CustomSlideViewCommand : SlideViewCommand
{
    public CustomSlideViewCommand()
    {
        this.Id = SlideViewCommandId.SlidedToIndex;
    }

    public override bool CanExecute(object parameter)
    {
        return true;
    }

    public override void Execute(object parameter)
    {
    }
}

XAML

 <telerikPrimitives:RadSlideView x:Name="slideView" />

CS

 this.slideView.Commands.Add(new CustomSlideViewCommand());

Figure 1: Disabled segment

SegmentedControl disable segment example

See Also