How to hookup TextBox's TextChanged event and Command in order to use MVVM pattern in Silverlight

前端 未结 10 2399
一整个雨季
一整个雨季 2020-12-15 18:19

Recently, I realized that MVVM pattern is so useful for Silverlight application and studying how to adopt it into my project.

BTW, how to hook up the textbox\'s text

10条回答
  •  孤城傲影
    2020-12-15 19:00

    Here's the MvvmLight way of doing it! Credit goes to GalaSoft Laurent Bugnion.

    
        
            
                
            
        
    
    

    Source: http://blog.galasoft.ch/archive/2010/05/19/handling-datagrid.selecteditems-in-an-mvvm-friendly-manner.aspx

提交回复
热议问题