FollowEnable
(Created page with "In the ViewModelEditor - when selecting a ViewModelColumn you see this: none|thumb|596x596px The FollowEnable (Follow Enable) checkbox is there to reduce the need to write a VisibleExpression in the common case that you want your VisibleExpression to be a Negation of the ReadOnlyExpression. Example: ReadOnlyExpression: self.ThisShouldBeReadOnlyAndInvisible You would then also need a VisibleExpression of : not self.ThisShouldBeRe...")
 
(Adding template at the end of the page)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
In the ViewModelEditor - when selecting a ViewModelColumn you see this:
In the ViewModelEditor, when selecting a ViewModelColumn, you see this:
[[File:FollowEnable 1704890566909.png|none|thumb|596x596px]]
[[File:FollowEnable 1704890566909.png|none|thumb|596x596px]]
The FollowEnable (Follow Enable) checkbox is there to reduce the need to write a VisibleExpression in the common case that you want your VisibleExpression to be a Negation of the ReadOnlyExpression.
The FollowEnable (Follow Enable) checkbox is there to reduce the need to write a VisibleExpression in the common case that you want your VisibleExpression to be a Negation of the ReadOnlyExpression.
Line 5: Line 5:
Example:
Example:


ReadOnlyExpression: self.ThisShouldBeReadOnlyAndInvisible
ReadOnlyExpression: <code>self.ThisShouldBeReadOnlyAndInvisible</code>


You would then also need a VisibleExpression of : not self.ThisShouldBeReadOnlyAndInvisible
You would then also need a VisibleExpression of : <code>not self.ThisShouldBeReadOnlyAndInvisible</code>


Instead of filling the VisibleExpression you simply click the FollowEnable box behind the VisibleExpression. This will use a negated ReadOnlyExpression as the VisibleExpression automatically and you do not need to maintain 2 expressions.
Instead of filling the VisibleExpression, you simply click the FollowEnable box behind the VisibleExpression. This will use a negated ReadOnlyExpression as the VisibleExpression automatically and you do not need to maintain 2 expressions.
 
(The reasoning for calling it "follow enable" rather than "follow a negated readonly" is purely space conservative.)
[[Category:Expressions]]
{{Edited|July|12|2024}}

Latest revision as of 14:46, 10 February 2024

In the ViewModelEditor, when selecting a ViewModelColumn, you see this:

FollowEnable 1704890566909.png

The FollowEnable (Follow Enable) checkbox is there to reduce the need to write a VisibleExpression in the common case that you want your VisibleExpression to be a Negation of the ReadOnlyExpression.

Example:

ReadOnlyExpression: self.ThisShouldBeReadOnlyAndInvisible

You would then also need a VisibleExpression of : not self.ThisShouldBeReadOnlyAndInvisible

Instead of filling the VisibleExpression, you simply click the FollowEnable box behind the VisibleExpression. This will use a negated ReadOnlyExpression as the VisibleExpression automatically and you do not need to maintain 2 expressions.

(The reasoning for calling it "follow enable" rather than "follow a negated readonly" is purely space conservative.)

This page was edited 92 days ago on 02/10/2024. What links here