Getting Colors for Use In Code Behind or ViewModel #297
-
I am working with a plotting library and I'm wondering if there's a way to get the color of the foreground text for current theme from viewmodel or code behind. I see that in XAML we could use Dynamic resource, but if i need to access the color manually? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Answered by
SKProCH
Sep 27, 2023
Replies: 1 comment 3 replies
-
As far as i can remember, you can use |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
seikosantana
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As far as i can remember, you can use
TryFindResource
orFindResource
inside your window/usercontrol/etc. If you need an observable useGetResourceObservable
.