crazy proj : No 6 - data binding + event handing

1. data binding 

mainly 2 methods: static, dynamic

(datacontext, datatable, bindinglist... I just mark them here as I ever saw them somewhere. )

the page can get the data via "get" method of the model you specified 

a. 

    <Window.DataContext>
        <local:ViewModel/>
    </Window.DataContext>

b.  

 ItemsSource="{Binding Path=Option_data}" 

c.

(here should build another view model to exhibit on the page)

(TODO: specify the data grid column name to substitute the name automatically generated from the data structure))

 

2. event handing

TODO......

posted on 2014-03-26 22:49  surghost  阅读(169)  评论(0编辑  收藏  举报

导航