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

SetClipToBounds: View remains clipped after disabling clip to bounds #43

Open
rigdern opened this issue Jan 20, 2017 · 0 comments
Open

Comments

@rigdern
Copy link

rigdern commented Jan 20, 2017

Repro

For example, if you execute the following code:

// Start clipping the view
WinRTXamlToolkit.Controls.Extensions.FrameworkElementExtensions.SetClipToBounds(view, true);
// Stop clipping the view
WinRTXamlToolkit.Controls.Extensions.FrameworkElementExtensions.SetClipToBounds(view, false);

Unexpected result: view is still clipped even though you've requested that it no longer be clipped to its bounds.

Expected result: view is no longer clipped.

Fix

This can be fixed by setting _fe.Clip = null in ClipToBoundsHandler's Detach method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant