Table of Contents
  • Getting Started
  • EO.Pdf
  • EO.Web
  • EO.WebBrowser
  • EO.Wpf
    • Overview
    • Installation & Deployement
    • Skin & Theme
    • Common Taskes and Services
    • EO.Wpf Buttons
    • EO.Wpf Calendar & DatePicker
    • EO.Wpf ComboBox
    • EO.Wpf DockView
    • EO.Wpf Gauge
    • EO.Wpf ListBox
    • EO.Wpf Menu
    • EO.Wpf MaskedEdit
    • EO.Wpf ProgressBar
    • EO.Wpf Slider
    • EO.Wpf SpinEdit
    • EO.Wpf SplitView
    • EO.Wpf TabControl
    • EO.Wpf TreeView
    • EO.Wpf Utility Controls
    • EO.Wpf WindowChrome
    • Sample Data Objects
  • Common Topics
  • Reference
Major & Minor Ticks

Note: This topic is about tick bar controls. It is not necessary for you to use a tick bar control directly since the scale controls automatically generate one or more tick bar controls. However the concept of "major tick" and "minor tick" are the same.

A single tick bar can contain either major ticks or minor ticks. It can not contain both. If you wish to display both major and minor ticks, you must use two tick bar controls. However usually it is not necessary to use two tick bar controls directly because a scale control makes this task much easier ---- it automatically generates major and/or minor tick bars based on user settings. See using scales for more details.

The positions of the major ticks are determined by a tick bar's Minimum, Maximum and MajorInterval. For example, if Minimum is 0, Maximum is 10 and MajorInterval is 5, then major ticks will appear at 0, 5 and 10, as demonstrated in the following XAML:

XAML
<eo:LinearTickBar Minimum="0" Maximum="10" MajorInterval="5" TicksDisplay="Major">
</eo:LinearTickBar>

Note the TicksDisplay property is set to Major. The above code generates the following result:

The positions of the minor ticks are determined by a tick bar's Minimum, Maximum, MajorInterval. MinorInterval. For example, if Minimum is 0, Maximum is 10, MajorInterval is 5 and MinorInterval is 1, then minor ticks will appear at 1, 2, 3, 4, 6, 7, 8 and 9. Note that minor ticks automatically skip major tick positions: position 0, 5, and 10, which are major tick positions, are skipped in minor tick positions. This makes it possible for you to stack a major tick bar and a minor tick bar on top of each other without having both major and minor tick appearing at the same location. The following code demonstrates this behavior:

XAML
<eo:LinearTickBar Minimum="0" Maximum="10" MajorInterval="5" MinorInterval="1" TicksDisplay="Minor">
</eo:LinearTickBar>

Note the TicksDisplay property is set to Minor. The above code generates the following result:

Because minor tick skips all major tick positions, it is important for you not to use the same value for major tick and minor ticks ---- otherwise no minor ticks will be shown at all.