1
내가이대신 직접 여러 수준
Being
|_ Person
|_ Billing Address
|_ Customer
|_ Shipping Addresses (Collection)
|_ etc..
|_ etc..
내보기와 같은 모델 구조를 가지고 말 모델로의 VM 래퍼로보기를 결합하는 방법 MVVM을 사용하여이
ListBox (ItemsSource - bound to a VM wrapper of "Being")
- DataTemplate containing ListBox2 (ItemsSource - bound to a VM wrapper of "Person")
- DataTemplate containing ListBox3 (ItemsSource that I want to be bound to "Shipping Adresses") PROBLEM!
임입니다 Light 및 Locator를 사용하지만 세 번째 수준 인 DataTemplate (ListBox3)에서 "Shipping Adresses"바인딩을 수행하는 방법을 파악할 수 없습니다. 모델의 Shipping Addresses Collection에 직접 바인딩 만 할 수 있습니다. 하지만 나는 고객의 VM 랩퍼에서이 작업을 수행하려고합니다. 왜냐하면 콜렉션을 가지고 뭔가를해야하기 때문입니다. 모든 코드가 내부 바인딩에 도움이됩니다.