在Framework 4中爲WPF宣佈了包含DataGrid和DatePicker控件,但是當我訪問Visual Studio 2010並創建一個WPF項目時,我沒有得到這些控件。我錯過了什麼? 謝謝。Datagrid in vs 2010
回答
你確定目標框架設置爲v4嗎?他們應該在工具箱中「只顯示」,如果你的目標是框架的第4版。
我希望我理解你的問題,所以我們去... 而不是DataGrid,你可以使用ListView和ListView.View設置爲一個GridView。在此之後,您必須創建一對GridViewColumn對象,設置它們的綁定,然後將它們添加到GridView。
我有一個這樣做的例子(但我不認爲這是最好的,因爲我是這種編程的東西新)。如果你想我可以在這裏發佈。
WPF在以前的版本中沒有DataGrid和datepicker控件;爲了解決這種情況,實現了一個名爲WPF Datagrid工具包的免費工具:http://wpf.codeplex.com/。但是對於框架4,它宣佈WPF將包含自己的DataGrid/datepicker實現。 – vizcayno 2010-05-18 12:50:01
我只是看着那個網站。看起來很有希望,但我不知道它是否包含在v4.0中。 – 2010-05-18 13:04:25
v4 Framework中有本地控件:http://msdn.microsoft.com/en-us/library/bb613588(v=VS.100).aspx#new_controls – 2010-05-18 13:05:48
- 1. csv in datagrid
- 2. Datagrid「Addrow」in GroupItem
- 3. vs vs 2008 vs vs 2010
- 4. 的Datagrid VS的GridView
- 5. concat in FSharp.Core.String vs Concat in System.String
- 6. inline asm in C++ in vs __asm
- 7. python in applescript:subprocess.call vs os.system in automator
- 8. AS3 - for(... in ...)vs for each(... in ...)
- 9. $ injector.instantiate VS $ injector.get VS $ injector.invoke in angularjs
- 10. ECB vs global vs cscope .. in emacs
- 11. vba charting in excel 2010
- 12. GridView vs DataGrid性能
- 13. template.find()vs document.querySelector vs jquery vs template。$ performance in Meteor
- 14. ATL VS C++ 2010
- 15. Spark VS 2010 intellisense
- 16. VS 2010 Performance Explorer
- 17. VS 2010調試
- 18. 在VS 2010
- 19. VS 2010 RDLC -Desginer
- 20. TFS和VS 2010
- 21. 與VS 2010 SQLite
- 22. 對VS 2010
- 23. 轉型從6 VS 2010 VS
- 24. 安裝VS 2008和VS 2010
- 25. 「*」vs「:」in R for model
- 26. map vs hash_map in C++
- 27. http.get vs http.request in Angular
- 28. Casex vs Casez in Verilog
- 29. ArrayBuffer vs ArrayBuilder in scala
- 30. NOT EXISTS VS NOT IN
羅蘭,目標設置爲v3.5 sp1 ,我改成了V4,一切OK!我的錯誤...非常感謝! – vizcayno 2010-05-18 13:15:37