我開始WPF,看着How do o: Getting started with Entity Framework爲什麼需要綁定在這方面
我是升技困惑爲什麼需要
<ListBox Name="ListBox1" ItemsSource="{Binding Source={StaticResource CustomerSource}}" >
爲什麼不能我做
<ListBox Name="ListBox1" ItemsSource="{StaticResource CustomerSource}" >
如何我知道我什麼時候需要Binding
。因爲在1日的思想,就像我在使用樣式
<Button Style="{StaticResource someStyle}"
爲什麼不
<Button Style="{Binding Source={StaticResource someStyle}}"