Flyout style from Accent to Light is not working #2337

Closed
coussej opened this Issue Feb 4, 2016 · 5 comments

Comments

Projects
None yet
2 participants
@coussej

coussej commented Feb 4, 2016

In my code, I have a flyout called modalFlyoutRight defined in my MainWindows.xaml, which I then use from child elements in the following form:

Window parentWindow = Window.GetWindow(this);
object obj = parentWindow.FindName("modalFlyoutRight");
Flyout flyout = (Flyout)obj;
flyout.Theme = FlyoutTheme.Light;
flyout.Content = ...

I use the same flyout for different content, and style it with both light and accent themes. When I go from Light -> Accent, all works, but from Accent to light the background remains in the Accent color. Maybe some properties are not explicitly set when selecting the light theme?

First call with FlyoutTheme.Light:
image

Second call with FlyoutTheme.Accent:
image

Third call with FlyoutTheme.Light:
image

@punker76

This comment has been minimized.

Show comment
Hide comment
@punker76

punker76 Feb 4, 2016

Member

@coussej changing the Flyout Theme on the fly is currently not fully supported

Member

punker76 commented Feb 4, 2016

@coussej changing the Flyout Theme on the fly is currently not fully supported

@punker76 punker76 added the Enhancement label Feb 4, 2016

@coussej

This comment has been minimized.

Show comment
Hide comment
@coussej

coussej Feb 4, 2016

Can you think of a possible workaround to achieve what I'm trying here?

coussej commented Feb 4, 2016

Can you think of a possible workaround to achieve what I'm trying here?

@punker76

This comment has been minimized.

Show comment
Hide comment
@punker76

punker76 Feb 4, 2016

Member

@coussej maybe i found the cause why this happens, I'll look what I can do for a fix....

Member

punker76 commented Feb 4, 2016

@coussej maybe i found the cause why this happens, I'll look what I can do for a fix....

@coussej

This comment has been minimized.

Show comment
Hide comment
@coussej

coussej Feb 4, 2016

talk about service... 😄 thanks man!

coussej commented Feb 4, 2016

talk about service... 😄 thanks man!

@punker76 punker76 self-assigned this Mar 11, 2016

@punker76 punker76 added this to the 1.4.0 milestone Sep 20, 2016

@punker76 punker76 modified the milestones: 1.5.0, 1.4.0 Dec 21, 2016

@punker76

This comment has been minimized.

Show comment
Hide comment
@punker76

punker76 Mar 24, 2017

Member

@coussej Hi, I know it's late, but if this still an issue then please test the latest 1.5.0-alpha014. Thx.

Member

punker76 commented Mar 24, 2017

@coussej Hi, I know it's late, but if this still an issue then please test the latest 1.5.0-alpha014. Thx.

@punker76 punker76 closed this in 16fcad7 Mar 25, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment