private void BindSliderValueToVariant(int value) { if (!IsAbleToBindProperty()) { return; } var currentCategory = CurrentVariantCategory.Text; var styleVariant = _styleVariants[currentCategory][StylesVariationListSelectedId.Number]; var propName = GetPropertyName(currentCategory); PropHandlerFactory.GetSliderPropHandler(propName).BindStyleVariant(styleVariant, value); }
private void BindSliderValueToStyle(int value) { if (!IsAbleToBindProperty()) { return; } Model.StyleOption styleOption = _styleOptions[StylesVariationListSelectedId.Number]; string currentCategory = CurrentVariantCategory.Text; string propName = GetPropertyName(currentCategory); PropHandlerFactory.GetSliderPropHandler(propName).BindStyleOption(styleOption, value); }
public void BindStyleToSlider() { if (!IsAbleToBindProperty()) { return; } var styleOption = _styleOptions[StylesVariationListSelectedId.Number]; var currentCategory = CurrentVariantCategory.Text; var propName = GetPropertyName(currentCategory); var propHandler = PropHandlerFactory.GetSliderPropHandler(propName); var sliderProperties = propHandler.GetSliderProperties(styleOption); SelectedSliderValue.Number = sliderProperties.Value; SelectedSliderMaximum.Number = sliderProperties.Maximum; SelectedSliderTickFrequency.Number = sliderProperties.TickFrequency; }