Skip to content

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

Description

@rigdern

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions