Synopsis: | Organize properties in the right order |
Language: | XAML |
Severity Level: | 1 |
Category: | Organization and Layout |
Description: |
Consider organizing the properties as follows:
The following example illustrates these organization principles. In this example, we define a custom button that is put in the second row and third column of a grid (note that grids use zero-based indexing of their rows and columns). Furthermore, the custom button has custom content and a custom tooltip, and has several layout properties set. We apply the previous recommendation of putting related properties on the same line. The custom button is intended not to be visible by default - a trigger (not shown here) will take care of making the button visible under the right conditions. ✔ |