This question is locked. New answers and comments are not allowed.
I recently implemented the solution for changing the themes in runtime.
Now i need to change the color of my Radtreeview etc with it .
Therefor i want something like
But to do this i need somethings that returns the current theme name cause
does not work , neither does this.Style.ToString()
Now i need to change the color of my Radtreeview etc with it .
Therefor i want something like
| SolidColorBrush nieuw; |
| switch (StyleManager.ApplicationTheme.ToString()) |
| { |
| case "Blue": |
| nieuw = new SolidColorBrush(Color.FromArgb(255, 221, 236, 253)); |
| tvAssetOverview.Background = nieuw;; |
| break; |
| case "Black": |
| nieuw = new SolidColorBrush(Color.FromArgb(255, 213, 213, 213)); |
| tvAssetOverview.Background = nieuw; |
| break; |
| case "Silver": |
| nieuw = new SolidColorBrush(Color.FromArgb(255, 210, 213, 232)); |
| tvAssetOverview.Background = nieuw; |
| break; |
| case "Summer": |
| nieuw = new SolidColorBrush(Color.FromArgb(255, 225, 227, 228)); |
| tvAssetOverview.Background = nieuw; |
| break; |
| case "Vista": |
| nieuw = new SolidColorBrush(Color.FromArgb(255, 225, 227, 228)); |
| tvAssetOverview.Background = nieuw; |
| break; |
| case "Windows 7": |
| nieuw = new SolidColorBrush(Color.FromArgb(255, 219, 230, 244)); |
| tvAssetOverview.Background = nieuw; |
| break; |
| default: |
| break; |
| } |
But to do this i need somethings that returns the current theme name cause
| switch (StyleManager.ApplicationTheme.ToString()) |