开发者

Binding ScatterViewItems to files

开发者 https://www.devze.com 2023-01-14 18:15 出处:网络
I\'m developing an application using the Surface Toolkit for Windows 7 beta and stumbled upon this problem:

I'm developing an application using the Surface Toolkit for Windows 7 beta and stumbled upon this problem:

I'm having a ScatterView which should show all files in a folder. Therefore I use a FileSystemWatcher that recognizes adding, deleting and renaming files. For presenting the files I define the ItemTemplate. So far so good.

I'm new to C# and WPF but as far as I know, the best way to do this is to bind the ItemsSource property of the ScatterView to a Collection which is managed by my FSW routine. But I just can't get it to work!

Am I on the right way? Does anyone have some examples that could help m开发者_Go百科e?


i think the best way is to use view models to represent the files and bind the view models to the items in the scatterview instead

0

精彩评论

暂无评论...
验证码 换一张
取 消