您的位置:首页 > 其它

[Wix] RadioButton与ListItem的属性要改掉了

2004-12-18 13:56 525 查看
 Schema Break: ListItem/RadioButton change  

 It was pointed out to me (a while ago, I"ve just been delaying this email

 for a while) that the RadioButton element is not consistent with the rest of

 the schema.  In fact, it was still following the WiX v1 syntax which is

 really old.  It is also one of the areas where a few ugly bugs live because

 of the old schema format.  The ListItem element was better but still

 slightly off.

 

 The changes will have ListItem and RadioButton elements used to look like

 this:

 

 <RadioButton X="10" Y="5" Width="380" Height="18"

 Text="{\Tahoma10}C&omplete">Complete</RadioButton>

 

 And will now look like:

    

 <RadioButton Value="Complete" X="10" Y="5" Width="380" Height="18"

 Text="{\Tahoma10}C&omplete"/>

    

 Or:

 

 <RadioButton Value="Complete" X="10" Y="5" Width="380"

 Height="18"><Text>{\Tahoma10}C&omplete </Text></RadioButton>

 

 For ListItem"s the Id attribute name is changing to Value.  I plan to check

 this change in tonight (along with many other bug fixes) and the next

 release of the WiX toolset will accept the old syntax but display warnings

 about the deprecated syntax.  A future build (next year) will remove the old

 syntax completely.

 

 Hopefully, this will be the last schema change (but don"t get your hopes too

 high).

 

 virtually,

 

  Rob Mensching

  http://blogs.msdn.com/robmen

  http://wix.sourceforge.net 

让人郁闷的是:<ListItem Id="a">

它会有警告:ID将被Value取代,但写成<ListItem Value="a" >,它又说ID是必须的,加上ID又会有警告。

上面英文说下一个版本将会把警告拿掉。等待ing

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: