Binding properties through DataTemplates and ContentControl

后端 未结 2 522
旧巷少年郎
旧巷少年郎 2020-12-20 09:02

I liked this answer, and it almost fit me.

But, how can I achieve this if my DataTemplate is in a external ResourceDictionary

2条回答
  •  渐次进展
    2020-12-20 09:51

    Since the DataContext behind OperationView will be an object of type Operation, then you simply bind to whatever property on Operation you want

    
    
    

提交回复
热议问题