A Canvas style consists of a set of properties with preconfigured property values for a particular control type. Style sheets allow you to quickly apply a predetermined style to any control added to a screen or object. By designing and using style sheets consistently you can make changes in one place and cascade those changes down to all Canvas screens in the CygNet environment. Style sheets allow for the creation of unique style guidelines for your enterprise, making screen design faster, easing the burden of screen maintenance, and improving operator experience. If you create more than one object with the same properties, it's a good idea to use styles to ensure consistency in design.
Best practice recommends that you create new styles when building your screens in the Screen and Properties panes, and then subscribe to the style in the control's Style property. Once created you can manage all styles in the Backstage view: edit style name and property values, set as default, delete, even create new styles.
These settings are saved in XML format as part of the global settings file (.gsf) for your Canvas application and applied to all instances of Canvas.
You can use the Canvas Find / Replace feature to globally edit style names and property values.
Styles are created and configured in two places within Canvas:
Both locations are described below.
It is easy to create styles in the Properties pane using the Select Properties for New Style dialog box. This is the preferred method for style sheet creation and configuration.
![]()
Style Sheet configuration — Properties pane
Note: The style sheet does not display all properties for all control types. Some complex object types (for example, Chart.Series properties, and Grid.ColumnDefinition properties) and lists (e.g. ComboBox.Items properties) are hidden from style configuration.
The Backstage view is the best location for globally managing styles. Additionally, this is where you designate the default style for a control type. You can also delete styles from this view. Once created in this view, the style will be visible in the Styles property drop-down menu and can then be associated with an object in the Properties pane.
![]()
Style Sheet configuration — Backstage view
Note: The style sheet does not display all properties for all control types. Some complex object types (for example, Chart.Series properties, and Grid.ColumnDefinition properties) and lists (e.g. ComboBox.Items properties) are hidden from style configuration.
Click
in the column header to filter the rows as needed. Click here for more information about using the filter tool.
Click any column header to sort that column in ascending or descending order.
Notes: