Hi,
I have below code to set the Source of bookmarkImage.Source.
bookmarkImage.Source = new FontImageSource() { FontFamily = "FontSolid", Glyph = Application.Current.Resources["IconBookmark"].ToString(), Color = Color.FromHex(Application.Current.Resources["IconBookmarkedLightColor"].ToString()) };
How can I set the color based on the App Theme? In the above example the color is set this way:
Color = Color.FromHex(Application.Current.Resources["IconBookmarkedLightColor"].ToString())
I want if the App is on Light theme then it should use IconBookmarkedLightColor and if it's on Dark theme then IconBookmarkedDarkColor
Thanks,
Jassim