Create a template control in avalonia for reusable gauges is not working? #1867
Replies: 1 comment
-
If anyone is curious, I found the answer here in the Avalonia github discussion AvaloniaUI/Avalonia#13246 All you have to do is change the binding of the series from template binding to the normal binding with relative source to template parent. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
As per the title, I would like to be able to reuse a design multiple times in my application.
So far in WPF, I can get it working by using a UserControl and do some binding magic so that all the gauges are independent of each other.
When reading through the Avalonia documentation, it looks like what I want is a Template Control to create reusable components. I can get the application to build but I don't get a reaction to a change in value.
Anyone has encountered any similar issue?
WPF
Avalonia
Beta Was this translation helpful? Give feedback.
All reactions