About SJStyles
The simplest way to work with standard bindings is to use styles. SJStyles are used to customize XAML controls. There are defined styles for the most common control types, but you can also define your own style, if needed. The predefined controls start with “Sj”.
“SJ” controls describe binding rules for the most commonly used controls. These are:
-
SjTextBox
-
SjComboBox
-
SjTextBlock
SjLabel
SjDatePicker
.
For the search forms, the following styles have been defined:
-
SjTextBoxSearch
SjComboBoxSearch
SjAutoCompleteControl
(also used inDocumentRegistrationPane
).
The major difference between them is that the search form styles do not validate the input.
The generalized SjStyles listed below are presented only in XAML forms. The SjStyles are not available in XAML dialog boxes. Changing these styles in dialog boxes is possible only by inheritance. However, you can add new controls with these styles.
SjOfficeStyleTextBox
– a text box that inherits the Microsoft Office color scheme and has no binding. It is used as a basis forSjTextBox
. It can be used directly if no default binding is needed.SjTextBox
– a text field. Attribute values are inherited from the data column.SjTextBoxSearch
– is used on the search forms for regular text input. Does not validate the input.SjComboBox
– is used on the search forms for regular text input. Does not validate the input.SjComboBoxSearch
,SjFilterComboBox
– a drop down field. Attributes values inherited from the data column.SjGridComboBox
– is used to select items inside the grid control.SjDatePicker
– a date field with the date picker control attached. Attributes values inherited from the data column.SjCaseClassAutoCompleteBox
– is used for case class auto-complete text box.SjAutoCompleteControl
– is used on the search forms and in the Document Registration pane to enable auto-complete behavior for Case Handler (officer
) and Responsible Unit (responsible_ou
) fields.
You can configure date picker content control to use the long or short date format, so that it uses the same format as the SjDatePicker. See Configurable elements.
Customizable SjStyles are presented in each XAML file. You can configure them according to your needs.
SjLabel
– static text, used primarily for labels.SjTextBlock
– a read-only text field.
MinimumSearchLengthByCode
– defines the minimum number of typed characters needed to start the search. If this property is used, search is performed only by initials. The default value is 2.Important: This value should be lower than the value you assign toMinimumSearchLength
.MinimumSearchLength
– defines the minimum number of typed characters needed to start the search. If this property is used, search is performed on any text type (that is, in full text and initials). The default value is 3.LoadAllDataCommand
– displays all items that match the typed text.Important: This property must not be used together withLoadNextDataCommand
.LoadNextDataCommand
– displays the first 50 items thatwhich match the typed text. If there are more than 50 items, a scrollbar appears. If you scroll down, additional items are displayed.ResolveItemValueAsPrimary
– the value can beTrue
orFalse
.True
: when the drop-down list is closed, the item containing initials that match the typed text is selected automatically.False
: when only one item is found, this item is selected automatically. When several items are found, the selected item is then resolved as empty (that is, the control is cleared).