Skip to content
Discussion options

You must be logged in to vote

In TemplateApplied event/override you can get it from the namescope in similar way as it is here:
https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Controls/Slider.cs#L189

Other way, less efficient, is to find this control in the visual tree (traverse VisualChildren enumerable recursively).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sn4k3
Comment options

Answer selected by sn4k3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants