Elysium has a special API set, designed to work with additional preferences of the control's style. Using them you can change parameters like font size of the header of the controls Window and TabControl or the size of the flag in controls CheckBox and RadioButton.

All parameters (except PopupPlacementCallback, which is a field with a delegate type) are usual attached dependency properties.

Parameters' usage.

XAML Copy imageCopy
1<CheckBox Content="CheckBox"
2          IsChecked="True"
3          params:Checkbox.CheckSize="10px">
4    ...
5</CheckBox>
C# Copy imageCopy
1var control = new System.Windows.Controls.CheckBox();
2var currentValue = Elysium.Parameters.CheckBox.GetCheckSize(control);
3Elysium.Parameters.CheckBox.SetCheckSize(control, 10d);
List of available parameters.

A class, which pesent API functions to access parameters

Parameters' description

Manager

  • Theme's preferences of the control. To read more, take a look at Theme settings.

Manager

  • Theme's preferences in constructor mode. To read more, take a look at Theme settings.

General

  • The size of the header's font, content and text.

  • Thickness of main lines.

  • Size of the offsets.

  • Animation time.

  • A color of the shadows.

Window

Parameters of the control Window:

  • Thickness of the frame, which is used to change window's size.

Bullet

Parameters of the controls CheckBox and RadioButton:

  • The size of the region where the marker is situated.

  • The size of the marker.

CheckBox

Parameters of the control CheckBox:

  • The size of the marker during "checked" state.

ComboBox

Parameters of the control ComboBox:

  • Width of the button.

  • Size of the arrow in the combox.

  • Offset of the arrow in the combox, measured from the button's sides.

CommandButtons

Parameters of the control, which are inherited from CommandButtonBase:

  • A brush, which is used to fill the content of the buttons.

DropDown

Parameters of the style of the drop-down list (it's a control Popup in templates of some controls, such as ComboBox or Submenu):

  • Current state of the drop-down list (is it opened or not)

  • A read-only value, which indicates whether the horizontal position of the drop-down list is equal to the corresponding default value.

  • A read-only value, which indicates whether the vertical position of the drop-down list is equal to the corresponding default value.

  • A delegate, which is used to calculate a position of the drop-down list.

MenuBase

Parameters of the control, which are inherited from MenuBase:

  • A background color of a submenu.

  • A color of the border of a submenu.

  • A size of the border of a submenu.

MenuItem

Parameters of the control MenuItem:

  • The size of the marker.

  • The size of the arrow in the menu item.

  • Offset of the arrow in the menu item, measured from the item's sides.

Progress

Parameters of the control, which are inherited from ProgressBase:

  • A size of the element, which indicates the progress (default shape is circle).

ScrollBar

Parameters of the control ScrollBar:

  • Size of the arrow.

Slider

Parameters of the control Slider:

  • Length of the track.

  • Width of the slider.

TabControl

Parameters of the control TabControland TabItem:

  • A brush, which is used to fill the current tab's indicator.

Parameters of the control. TabControl:

  • Thickness of the current tab's indicator.

TabItem

Parameters of the control's style TabItem:

  • Style of the header (this property is usually set locally corresponding to the style of the control)

ToggleSwitch

Parameters of the control ToggleSwitch:

  • Width of the switch.

  • Thickness of the switch.

See Also