Control Elements for LightSwitch Themes
When creating a theme extension by using the LightSwitch Extensibility Toolkit, you can define brushes for the controls that are used in the LightSwitch shell and screens in an .xaml file. Sections in the .xaml file define the appearance of each type of control in each allowable state.
Control Mappings
The controls in the shell and screens are based on Silverlight controls. The following table contains mappings from the control elements in the .xaml file to their underlying Silverlight controls. To learn more about a specific Silverlight control and the states that it supports, see Silverlight Control Styles and Templates.
Control Element |
Inherits from |
---|---|
Button |
Silverlight Button |
TextBox |
Silverlight TextBox |
ComboBox/TextBox Button |
Silverlight Button |
Link |
Silverlight HyperlinkButton |
Label |
Silverlight Label |
CheckBox |
Silverlight CheckBox |
TabControl |
Silverlight TabControl |
Toolbar |
Silverlight ContentControl |
ScrollBar |
Silverlight ScrollBar |
List/Grid |
Silverlight DataGrid |
Grid |
Silverlight DataGrid |
List |
Silverlight ListBox |
Popup/Menu |
Silverlight Button |