'Wix toolset - hide/show controls - why both are needed?
I saw many examples like this:
<Control Id="contorlId" Type="CheckBox" property="PROP1" CheckBoxValue="1">
<Condition Action="hide">A</Condition>
<Condition Action="show">NOT A</Condition>
</Control>
Why is it required to set both conditions? (In most/all cases the 'hide' condition is the NOT of the 'show' condition.
If the condition is more complex, such as the following:
<Control Id="contorlId" Type="CheckBox" property="PROP1" CheckBoxValue="1">
<Condition Action="hide"> A AND B AND C AND D AND E</Condition>
<Condition Action="show">NOT(A AND B AND C AND D AND E)</Condition>
</Control>
this redundancy can easily lead to bugs.
Is there a way to write this without having to specify both 'show' and 'hide' conditions, but keeping the same functionality?
Thanks
Ofer Presente
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
