Skip to main content

UX Patterns:Custom Slider

Headshot of article author Mehdi Slaoui Andaloussi

In a previous post, we used the gallery control to create a more complex control, the accordion control.  In this blog, we will create a custom slider with a completely skin using the basic built-in slider that comes with PowerApps. Here is the custom slider we will be building:

slider_thumb[1]

To start with, we will create a group of controls composed of a built-in slider (Slider), a rectangle (SliderRail), a label (HandleText) and an image that represents the handle (Handle). The Slider element is set to transparent and is only used to extract the slide gestures which will be used to drive the formulas for SliderRail, Handle and HandleText.

image_thumb[2]

Here is a summary of the different formulas and values used for various control properties. Notice how we are setting the alpha color of the built-in slider to 0 so that it’s no longer visible.

customSlider_thumb[2]

Download the sample app here