MaterialDesignInXamlToolkit icon indicating copy to clipboard operation
MaterialDesignInXamlToolkit copied to clipboard

[Bug|missing feature] Flipper prevents content from changing colors on switching palette

Open Insire opened this issue 8 years ago • 8 comments

Reproduction:

  • start MaterialDesignDemo app from the Demos folder in the solution
  • switch to Cards view and check color of the Flipper and its child ColorZone being violet and lime accent
  • then change palette in palette view to a different color for accent and primary
  • switch back to Cards view

Expectation:

  • Flipper and its child ColorZone have the selected colors

Result:

  • Flipper and its child ColorZone still have the old colors (violet and lime)

The issue can be verified in my own project too

  • start the app
  • click the globe in the window header
  • view with flipper opens
  • click brush in window header
  • change color in the opening view for primary and accent
  • click globe again
  • flipper still has the same color

Insire avatar Apr 21 '17 20:04 Insire

Here are some more information on the problem.

I did some looking around on google, and from my limited understanding of the matter, it seems that there is no easy universal way to update dynamic resources in an animation. The common approach seems to be to handcode the original animation and additionally handcode the animation for the color change in code behind. Obviously thats not a viable approach for a control library.

Does anyone have a better insight on the topic? Did i miss something? This is a really cool control and it would be sad if it would have such limited functionality.

Insire avatar Apr 22 '17 14:04 Insire

I'm missing this badly as well.

Aangbaeck avatar Sep 18 '17 08:09 Aangbaeck

This bug is still present. Has anyone found a workaround/fix?

Tide avatar Dec 18 '17 03:12 Tide

I would love to know if anyone has a workaround for this aswell. I was wondering if there is anyway to get the theme colour from the Palette selector but had no luck.

ChrisLawford avatar Jul 26 '18 15:07 ChrisLawford

Flagging this for review with the 2.5.0 release. This just means I will spend some time digging into the cause of the issue (maybe fixing depending on what it is) prior to releasing 2.5.0.

Keboo avatar Jul 26 '18 16:07 Keboo

I think this is still open. I tried to implement the flipper in my own app, but the colors are not updated when switching from light to dark mode and vice versa. The latest MaterialDesignDemo app shows the same behaviour.

sebaJoSt avatar Nov 29 '21 18:11 sebaJoSt

Push

bee-eater avatar May 31 '22 19:05 bee-eater

I'm going to check that

EDIT: I will create a new issue cause the flipper seems broken in the last version

ElieTaillard avatar Jun 01 '22 14:06 ElieTaillard