
Hi,
I am still quite new to Avalonia in general so my understanding in this area is a little limited - go easy on me please :)
I am currently using modern theme throughout my application which is working well for native controls.
I have created a new templated control, a range slider, which is designed to look and feel like the native slider. It is quite simple - just a slider with two thumbs which can be used to define a value range, and an extra grabable area in between the thumbs that let the start/end range thumbs be moved together.
For styling, I have copied relevant snippets from the Avalonia slider control template and when the actipro theme is not applied my range slider does indeed look more or less identical to an existing slider with 2x thumbs. I can (kind of) replicate the Actipro slider by using modern theme colour resources explicitly throughout my template but this seems like a bit of a bodge.
Question:
It seems clear that Actipro modern theme is replacing the entire control template the for slider, and I would like to copy the parts that apply to slider so that I can use them in my range control and have that update as I control the app theme globally. I have not been able to find the axaml for this control theme so I guess my question boils down to: are the modern control tempaltes available in axaml so that I can see what I need to use in my new control? In WPF getting the control template for a control was trivial and could be done within VS. Am I missing an equivalent for Avalonia?
thanks!
Matt
[Modified 4 days ago]

