The Wayback Machine - https://web.archive.org/web/20201011100903/https://github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkit/issues/2068
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flipper without shadow border #2068

Open
Prophetebe opened this issue Sep 22, 2020 · 2 comments
Open

Flipper without shadow border #2068

Prophetebe opened this issue Sep 22, 2020 · 2 comments

Comments

@Prophetebe
Copy link

@Prophetebe Prophetebe commented Sep 22, 2020

Hi,

Is it a way to remove the border (or just the shadow) on a flipper?

I put a button on each side of the flipper and I don't want to have border.

thank you.

@Keboo
Copy link
Member

@Keboo Keboo commented Sep 26, 2020

This appears to be a limitation with the MaterialDesignCardFlipper
The simplest solution would be to use the default style for the flipper (omit the Style="{StaticResource MaterialDesignCardFlipper}" if you have it), and set the BorderThickness property to 0.

However it does appear that being able to customize the shadow depth on the flipper is something that should be supported. If anyone wants to submit a pull request for it, it should simply be a template binding on the Card inside of the MaterialDesignCardFlipper style (linked above). This should allow someone to customize the depth of the shadow doing something like:

<materialDesign:Flipper Style="{StaticResource MaterialDesignCardFlipper}" VerticalAlignment="Top"
                        materialDesign:ShadowAssist.ShadowDepth="Depth0">
...
</materialDesign:Flipper>
@Prophetebe
Copy link
Author

@Prophetebe Prophetebe commented Sep 29, 2020

Hi, without the style MaterialDesignCardFlipper, every content element are displayed strangly (font size are bigger for example).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.