Skip to content

WinUi 3 Community Toolkit - public partial property issue #1089

Description

@StuRamsey

When using MVVM in WinUi 3 (Visual Studio 2026), so using public partial properties everything is ok until I run CodeMaid - Cleanup Active Document, then I get the dreaded red squiggly line under any partial void OnXXXPropertyChanged. The only way to fix it is to either undo the Cleanup or redo all the on property changed voids.
Not sure if this is a bug or something I'm doing wrong?

[ObservableProperty]
public partial string? DemoProperty { get; set; }

partial void OnDemoPropertyChanged(string? value)
{
//Do something here
}

Activity

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

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