→ yeo1987: Label Bind A, TextBox Bind B, B的Setter進行檢查設定A 03/12 10:16
→ yeo1987: 如果是要等Button按下才做動作那就用事件或ICommand 03/12 10:17
所以說 假設今天有多組互相對應的 TextBox 跟 Label
同時在 Button 按下後更新, 就要有相對應多的 Model 變數
※ 編輯: b26168 (114.42.50.55), 03/12/2017 10:43:18
→ yeo1987: 這得看你設計的需求與方式, 也有Bind同一變數的情形 03/12 10:50
→ testPtt: Button click notify Label get TextBox value 03/12 11:07
推 largesperm: 要在 WPF 做到完全真正的 MVVM 不容易 03/12 14:14
→ largesperm: 研究一下 Micro.Caliburn之類的工具 03/12 14:14
→ lightyan: 應該是在button_click裡面 寫上 03/13 11:46
→ lightyan: label.Content = textBox.Text; 03/13 11:46
推 jinmin88: 綁同一個變數..TextBox用OneWayToSource, Label用Oneway 03/13 13:40
→ jinmin88: 這個case可以不需要button了 可以靠updateTrigger 03/13 13:41