個人檔案Brownie Points部落格清單 工具 說明
22 July

What's in Your Toolbelt?

After thinking for a while about the open source WPF control library, I have decided to name it the WPF Toolbelt. Now that the hard part is out of the way , I can get down to actually coding the library. The foundation of the first control (SmartGrid) is finished. I just need to refactor out code that is proprietary to my company, add a few touches here and there and voila!
 
Here is a list of current and planned functionality for the Grid (that will be available at the first release).
 
  • Automatic binding to IEnumerable<T>: If you give the grid a collection of objects, it will reflect on that collection's type and generate a default column for each public property.
  • Recognition of DisplayNameAttribute: If your properties have the DisplayName attribute set on them, the column will display that name.
  • User specified columns: In addition to the collection of Items, you can provide a ColumnsCollection that will override the default binding for your collection.
  • Customizable styles: The SmartGrid exposes properties for styling of the Column Header, Column Header Cells, Rows, Alternate Rows, and Cells.
  • Multiple Cell Types: Right now the SmartGrid provides text, image, and drop down cells. I also intend to implement regex cells, validated cells (using the new found for me ValidationRule), date cells, object cells, and number cells.
  • Virtualization (not yet implemented): UI Elements will not be created until they are visible
  • Sorting: Because each column holds its binding information, it natively knows how to perform forward and reverse sorting if the column's type implements IComparable. Or you can turn off sorting altogether.
  • Column moving: You can reposition columns by dragging the header.
  • Column resizing: Columns can be resized.
  • And more to come...

The goal is to make databound grids as simple to use in WPF as they are for Winforms. While at the same time allowing for easy enhancement of styling through WPF. Hopefully, this will be just one of many useful tools in the WPF Toolbelt library.

回應

請稍候...
很抱歉,您輸入的回應過長。請縮短您的回應。
您尚未輸入內容,請再試一次。
很抱歉,目前無法新增您的回應,請稍後再試。
若要新增回應,您的父母必須先給您權限。要求權限
您的家長已關閉回應功能。
很抱歉,目前無法刪除您的回應,請稍後再試。
您已超過每日回應上限次數,請於 24 小時後再試一次。
由於系統顯示您可能傳送垃圾郵件給其他使用者,因此您帳號中的回應功能已遭停用。 如果您認為自己帳號遭錯誤停用,請連絡 Windows Live 支援
請完成下列安全檢查,以完成回應。
您輸入的安全檢查字元必須與圖片或音訊中的字元相符。

若要新增回應,請以您的 Windows Live ID 登入 (若您使用 Hotmail、Messenger 或 Xbox LIVE,則您已擁有 Windows Live ID)。登入


沒有 Windows Live ID?註冊

引用通告

此內容的引用通告是:
http://mbrownchicago.spaces.live.com/blog/cns!2221DC39E0C749A4!153.trak
引述這則內容的部落格