Soft Validation in the View Designer
The View Designer does not allow poorly structured views to be created and highlights errors in existing .vdl files.
When editing a view in the View Designer, any element dragged from the Palette can only be dropped into a valid position on the artboard. An element on the artboard will highlight blue when a viable element is dragged over it; If an artboard element is highlighted red, the dragged element cannot be dropped. The rules applied by the View Designer when adding elements to the artboard are illustrated by the table in the later topic on Element Embedding.
The validation protecting the code structure that is enabled in the
View Designer is not applied in the
Code editor. There is nothing to prevent you adding code with invalid formatting to a view in the
Code editor—If you return to the
View Designer, invalid code will be highlighted in red and the formatting errors will be displayed as a pane at the top of the
Attributes panel.
