控制TFS工作项布局、格式的属性(微软没有提供相应文档)
2008-12-02 15:21
501 查看
最近,为了将TFS工作项与CMMI文档统一起来,需要将TFS中的工作项进行自定义。发现没有定义日期型控件格式的属性,通过查找,发现了以下博客中有记载:
Undocumented attributes for controlling the Work Item form layout
主要有关工作项布局、格式的属性为:
<Control FieldName="control name" Type="FieldControl | DateTimeControl | HtmlFieldControl | LinksControl | AttachmentsControl | WorkItemClassificationControl | WorkItemLogControl" Label="label text" LabelPosition="Top | Bottom | Left | Right" Dock="Fill | Top | Bottom | Left | Right" Padding="(left, top, right, bottom)" Margin="(left, top, right, bottom)" ReadOnly="True | False" />
Attributes that weren’t documented:
MinimumSize: The minimum size the control should occupy in the form. If vertical space is not enough, then a scrollbar is shown to keep its minimum size. Without this attribute, the controls are drawn with their default sizes (unless controls in other tabs take larger space that incrasing whole tab’s size). The syntax for it's value is "(width,height)" (In regex format it is "^"("d+","d+")$").
Name: If you want to add same field to be displayed in more than one place, it is possible but the Name attribute should be set to unique values for both – so that the system identifies each control uniquely. It is useful to show same control in various places based on context of tabs.
[Update: 3/12/07]
Below are special attributes available for specific controls:
NumberFormat (for FieldControl only): Useful if a number value is displayed in the field. Possible values: WholeNumbers, SignedWholeNumbers, DecimalNumbers, SignedDecimalNumbers. Setting this attribute determines what characters are allowed to be entered in this control.
MaxLength (for FieldControl only): Maximum length of allowed characters for field control in form UI.
Format (for DateTimeControl only): One of values of DateTimePickerFormat enum. Possible values as given in help are: Long, Short, Time and Custom. Custom format can be set by having 'Custom' as value for this attribute, and setting another attribute named CustomFormat with actual custom format string.
Undocumented attributes for controlling the Work Item form layout
主要有关工作项布局、格式的属性为:
<Control FieldName="control name" Type="FieldControl | DateTimeControl | HtmlFieldControl | LinksControl | AttachmentsControl | WorkItemClassificationControl | WorkItemLogControl" Label="label text" LabelPosition="Top | Bottom | Left | Right" Dock="Fill | Top | Bottom | Left | Right" Padding="(left, top, right, bottom)" Margin="(left, top, right, bottom)" ReadOnly="True | False" />
Attributes that weren’t documented:
MinimumSize: The minimum size the control should occupy in the form. If vertical space is not enough, then a scrollbar is shown to keep its minimum size. Without this attribute, the controls are drawn with their default sizes (unless controls in other tabs take larger space that incrasing whole tab’s size). The syntax for it's value is "(width,height)" (In regex format it is "^"("d+","d+")$").
Name: If you want to add same field to be displayed in more than one place, it is possible but the Name attribute should be set to unique values for both – so that the system identifies each control uniquely. It is useful to show same control in various places based on context of tabs.
[Update: 3/12/07]
Below are special attributes available for specific controls:
NumberFormat (for FieldControl only): Useful if a number value is displayed in the field. Possible values: WholeNumbers, SignedWholeNumbers, DecimalNumbers, SignedDecimalNumbers. Setting this attribute determines what characters are allowed to be entered in this control.
MaxLength (for FieldControl only): Maximum length of allowed characters for field control in form UI.
Format (for DateTimeControl only): One of values of DateTimePickerFormat enum. Possible values as given in help are: Long, Short, Time and Custom. Custom format can be set by having 'Custom' as value for this attribute, and setting another attribute named CustomFormat with actual custom format string.
相关文章推荐
- 这么详细的分类 VB/VB.NET源代码网站你见过没有? VB/VB.NET中的每一个方法,每一个操作,每一个函数,每一个类.每一个属性,每一个事件都有相应的范例代码
- 这么详细的分类 PostgreSQL源代码网站你见过没有? PostgreSQL中的每一个方法,每一个操作,每一个函数,每一个类.每一个属性,每一个事件都有相应的范例代码
- 中国软件界就文档格式标准之争集体炮轰微软
- NHibernate翻译文档提供下载(chm和html格式)
- 微软开放 Microsoft Office 二进制文档格式规范
- 查看微软所提供的构架文档
- 使用微软提供的Office Online实现Office文档的在线查看,编辑等功能
- 微软MSDN提供的Visual Studio开发文档
- dsoframer-在线编辑office文档,一款开源的由微软提供
- C#设计模式之控制反转即依赖注入-微软提供的Unity
- 这么详细的分类 VC/C++源代码网站你见过没有? VC/C++中的每一个方法,每一个操作,每一个头文件,每一个函数,每一个类.每一个属性,每一个事件都有相应的范例代码
- 这么详细的分类 JavaScript 源代码网站你见过没有? JavaScript 中的每一个方法,每一个操作,每一个函数,每一个类.每一个属性,每一个事件都有相应的范例代码
- 微软宣布开放其文档格式
- 在本地计算机无法启动OracleDBConsoleorcl服务。错误:1053:服务没有及时相应启动或控制请求。
- 微软二进制文档 (.doc, .xls, .ppt)文档格式资料
- Android布局中的位置控制属性
- EXCEL文档没有打开时,报错误"外部表不是预期的格式。"
- 微软已经公开旧的Office文档格式技术细节
- TFS支持移动设备,微软已经走出了第一步(手机上更新、查询工作项)
- 六大布局及相应属性