Beispiel #1
0
        private void UpdateTemplate()
        {
            var color = Helper.GetColorByOffset(_linearGradientBrush.GradientStops, SldTheme.Value / 7);

            SliderHelper.SetTrackThickness(SldCustom, SldTrackThickness.Value);

            SliderHelper.SetThumbSize(SldCustom, SldThumbSize.Value);

            SliderHelper.SetThemeBrush(SldCustom, color.ToBrush());
            SldCustom.Background = new Color()
            {
                A = 30, R = color.R, G = color.G, B = color.B
            }.ToBrush();
        }