Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 1.37 KB

README.md

File metadata and controls

26 lines (20 loc) · 1.37 KB

WpfRangeControls

Customized WPF controls, RangePanel with custom vertical/horizontal positioning, RangeItemsControl with bindable ItemsSource and Visual Studio-like scrollbar with markers

demo screenshot

RangePanel

Custom arrangment panel (similar to stackpanel or canvas) with vertical or horizontal orientation. Positioning of children is controled by:

  1. Bounds set by Minimum and maximum properties (like Minimum and Maximum on scrollbar or trackbar)

  2. And three attached properties on each child element

  • RangePanel.Position: Position of child in RangePanel, similar to Value in scrollbar or trackbar
  • RangePanel.Alignment: (Begin, Center, End) which part of Children is aligned to Position. (See blue bars on screenshot)
  • RangePanel.Range: Width (on horizontal panel) or Height (on vertical) of element in relative units (full length is (Maximum - Minimum))
    • Minimum 0, Maximum 60, RangePanel.Range 20 => item width will be one third panel width

RangeItemsControl

ItemsControl with RangePanel as ItemsPanel

  • ItemsSource and ItemTemplate can be used to visualize data collection

RangeScrollbar

Scrollbar with RangePanel overlay.

  • can be used as ScrollBar with markings like the one in Eclipse or Visual studio
  • see bottom and right of screenshot
  • usable as ItemsControl, support ItemsSource bindings and multi element content