lucy
lucy
CC#
Created by lucy on 8/26/2023 in #help
❔ wpf styling/templating with custom dependency properties?
is there a way to use custom dependency properties with styles and templates? for example if I want a property, MiddleColour, on a template for a slider, that changes the background colour of the middle bit of the slider and I want to be able to change that colour using a style. Is that possible? Continuing on, would it also be possible to pass a property to the style, eg GradientColour, which is then used and passed to the MiddleColour in the template? Thanks
15 replies