Skip to content

Canvas SizeChanged is not triggered when it is inside another Canvas #2900

@cnbluefire

Description

@cnbluefire

Describe the bug
When modifying the width and height of the Canvas, If it's directly in another Canvas, ActualWidth and ActualHeight will change but SizeChanged is not triggered.

Steps to reproduce the bug
like this: https://github.com/cnbluefire/CanvasSizeChangedTest

Expected behavior
When a control's width and height change, it should trigger SizeChanged

Version Info

NuGet package version:

Windows 10 version Saw the problem?
Insider Build (xxxxx)
May 2020 Update (19041)
November 2019 Update (18363)
May 2019 Update (18362)
October 2018 Update (17763) Yes
April 2018 Update (17134)
Fall Creators Update (16299)
Creators Update (15063)
Device form factor Saw the problem?
Desktop Yes
Xbox
Surface Hub
IoT

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-LayoutsbugSomething isn't workingneeds-winui-3Indicates that feature can only be done in WinUI 3.0 or beyond. (needs winui 3)no-issue-activitywct

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions