讓ViewModel 繼承 BaseObservable() 並在想要觀察的變數上面加上 Bindable 註解,這步就能夠將這個變數和UI 層綁定在一起 class MainViewModel : BaseObservable() ...
確定! 回上一頁