change-sublist-to-observablecollection

Community

Make sublists update UI with ObservableCollection

Authorsekiya-sato
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Converts List<T> sub-list properties in a master mente ViewModel to ObservableCollection<T> so that DataGrid row additions/deletions are properly notified to the View. Applies the ApplyFromCurrentEdit / SyncToCurrentEdit pattern used in ShukkaUriageInputViewModel.

Core Features & Use Cases

  • Add an ObservableCollection field for sublists and expose an accompanying Edit* property for UI binding.
  • Expand sublists from CurrentEdit on changes and clone items to enable safe editing without mutating the original data.
  • Sync back to the List<T> before persisting (insert/update) to preserve data shape and support cancel/commit behavior.
  • Bind the DataGrid to the ObservableCollection (EditSubItems) to ensure UI updates reflect additions and deletions immediately.

Quick Start

Bind the DataGrid to EditSubItems, and expose AddSubItem/DeleteSubItem commands to modify the collection; ensure CurrentEdit changes are mirrored into the observable list for UI notifications.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: change-sublist-to-observablecollection
Download link: https://github.com/sekiya-sato/obsolete-cvnet10/archive/main.zip#change-sublist-to-observablecollection

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.