In This Article

MicroSegmentChart Class

Represents a segment chart control.

[TemplatePart(Name = "PART_ItemsControl", Type = typeof(ItemsControl))]
public class MicroSegmentChart : Control
Inheritance:
object Visual UIElement FrameworkElement Control object

Constructors

MicroSegmentChart()

Initializes an instance of the class.

public MicroSegmentChart()

Properties

DecreaseCommand

The ICommand that can be used to decrease the value.

public ICommand? DecreaseCommand { get; }

Property Value

ICommand

IncreaseCommand

The ICommand that can be used to increase the value.

public ICommand? IncreaseCommand { get; }

Property Value

ICommand

ItemContainerStyle

The Style to use for item containers.

public Style? ItemContainerStyle { get; set; }

Property Value

Style

ItemsPanel

The ItemsPanelTemplate to use for positioning segments.

public ItemsPanelTemplate? ItemsPanel { get; set; }

Property Value

ItemsPanelTemplate

Total

The total number of segments in the chart.

public int Total { get; set; }

Property Value

int:

The default value is 10.

Value

The number of segments that should appear highlighted in the chart.

public int Value { get; set; }

Property Value

int:

The default value is 0.

Methods

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate().

public override void OnApplyTemplate()

OnCreateAutomationPeer()

Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer:

The type-specific AutomationPeer implementation.

Fields

DecreaseCommandProperty

Defines the DecreaseCommand property.

public static readonly DependencyProperty DecreaseCommandProperty

IncreaseCommandProperty

Defines the IncreaseCommand property.

public static readonly DependencyProperty IncreaseCommandProperty

ItemContainerStyleProperty

Defines the ItemContainerStyle property.

public static readonly DependencyProperty ItemContainerStyleProperty

ItemsPanelProperty

Defines the ItemsPanel property.

public static readonly DependencyProperty ItemsPanelProperty

TotalProperty

Defines the Total property.

public static readonly DependencyProperty TotalProperty

ValueProperty

Defines the Value property.

public static readonly DependencyProperty ValueProperty

Extension Methods