RadzenImage light/dark path?

Hello, this is my first post and searched a lot before write my question.
So is it possible to set or update the source/path to image when toggle AppearanceToggle to switch between light and dark mode of the theme.
My current solution is this:
<RadzenImage Path="@(ThemeService.Theme.ToLower().Contains("dark") ? "imageWhite.png" : "image.png")" />

But this way i have to refresh the page/app to see the change.
I didnt found event to catch and change it my self.
I was searching for custom css for light and dark mode, but no luck so far.

Hi @psyhlo,

The ThemeService class has a ThemeChanged event. You can probably use it. Here is how we use it internally:

1 Like

Thanks, that work as i wanted