Slider: Improve the ticks rendering when the TickPlacement property is set to None
Currently, the containers for the ticks are generated and added in the visual tree even when the TickPlacement is set to None. Think of an improvement so that in this case the ticks are not added in the visual tree.