You can access the current theme resource using the following code:
Application.Current.Resources["<ThemeResourceName>"]
Available topic resource names are listed here . The result of the above operation should be attributed to the corresponding type; for example, if you are extracting PhoneAccentBrush , you must pass the result to SolidColorBrush .
source share