Posted 19 years ago
by Johnny Lozada
Hi,
I have one question and I'd like somebody could help me. I developed a StyleSheet editor using Intellisense on this. It works well, if you have between "{" and "}" and you type a white space a properties list is shown. The same happens for the value list for each property. But these list are shwon always after of a white space. I need to do the following: When the user presses the "enter" key inside of a class, and new line is inserted, and we should see the property name list; when the user has entered a property name and then enters a ":", the associated property value list for the property name should be showed, if there is one.
I have it in my ActiproSoftware.CSS.xml file:
<Triggers>
<KeyPressTrigger Key="PropertyListTrigger" Character=" ">
<KeyPressTriggerValidStates>
<KeyPressTriggerValidState State="PropertyState" />
</KeyPressTriggerValidStates>
</KeyPressTrigger>
<KeyPressTrigger Key="ValueListTrigger" Character=" ">
<KeyPressTriggerValidStates>
<KeyPressTriggerValidState State="ValueState" />
</KeyPressTriggerValidStates>
</KeyPressTrigger>
</Triggers>
I tried to change it as follows:
<Triggers>
<KeyPressTrigger Key="PropertyListTrigger" Character=" ">
<KeyPressTriggerValidStates>
<KeyPressTriggerValidState State="PropertyState" />
</KeyPressTriggerValidStates>
</KeyPressTrigger>
<KeyPressTrigger Key="ValueListTrigger" Character=":">
<KeyPressTriggerValidStates>
<KeyPressTriggerValidState State="ValueState" />
</KeyPressTriggerValidStates>
</KeyPressTrigger>
</Triggers>
But, it doesn't work. :(
Please, does somebody help me ?
Thanks a lot.
Johnny Lozada
I have one question and I'd like somebody could help me. I developed a StyleSheet editor using Intellisense on this. It works well, if you have between "{" and "}" and you type a white space a properties list is shown. The same happens for the value list for each property. But these list are shwon always after of a white space. I need to do the following: When the user presses the "enter" key inside of a class, and new line is inserted, and we should see the property name list; when the user has entered a property name and then enters a ":", the associated property value list for the property name should be showed, if there is one.
I have it in my ActiproSoftware.CSS.xml file:
<Triggers>
<KeyPressTrigger Key="PropertyListTrigger" Character=" ">
<KeyPressTriggerValidStates>
<KeyPressTriggerValidState State="PropertyState" />
</KeyPressTriggerValidStates>
</KeyPressTrigger>
<KeyPressTrigger Key="ValueListTrigger" Character=" ">
<KeyPressTriggerValidStates>
<KeyPressTriggerValidState State="ValueState" />
</KeyPressTriggerValidStates>
</KeyPressTrigger>
</Triggers>
I tried to change it as follows:
<Triggers>
<KeyPressTrigger Key="PropertyListTrigger" Character=" ">
<KeyPressTriggerValidStates>
<KeyPressTriggerValidState State="PropertyState" />
</KeyPressTriggerValidStates>
</KeyPressTrigger>
<KeyPressTrigger Key="ValueListTrigger" Character=":">
<KeyPressTriggerValidStates>
<KeyPressTriggerValidState State="ValueState" />
</KeyPressTriggerValidStates>
</KeyPressTrigger>
</Triggers>
But, it doesn't work. :(
Please, does somebody help me ?
Thanks a lot.
Johnny Lozada
Johnny Lozada