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 a new instance of the MicroSegmentChart class.
public MicroSegmentChart()
Properties
DecreaseCommand
Gets the ICommand that can be used to decrease the value.
public ICommand DecreaseCommand { get; }
Property Value
IncreaseCommand
Gets the ICommand that can be used to increase the value.
public ICommand IncreaseCommand { get; }
Property Value
ItemContainerStyle
Gets or sets the Style to use for item containers. This is a dependency property.
public Style ItemContainerStyle { get; set; }
Property Value
ItemsPanel
Gets or sets the ItemsPanelTemplate to use for positioning segments. This is a dependency property.
public ItemsPanelTemplate ItemsPanel { get; set; }
Property Value
- ItemsPanelTemplate:
The ItemsPanelTemplate to use for positioning segments.
Total
Gets or sets the total number of segments in the chart. This is a dependency property.
public int Total { get; set; }
Property Value
- int:
The total number of segments in the chart. The default value is
10.
Value
Gets or sets the number of segments that should appear highlighted in the chart. This is a dependency property.
public int Value { get; set; }
Property Value
- int:
The number of segments that should appear highlighted in the chart. The default value is
0.
Methods
OnApplyTemplate()
Invoked whenever application code or internal processes call ApplyTemplate.
public override void OnApplyTemplate()
OnCreateAutomationPeer()
When implemented in a derived class, returns class-specific AutomationPeer implementations for the Silverlight automation infrastructure.
protected override AutomationPeer OnCreateAutomationPeer()
Returns
- AutomationPeer:
The class-specific AutomationPeer subclass to return.
Fields
DecreaseCommandProperty
Identifies the DecreaseCommand dependency property. This field is read-only.
public static readonly DependencyProperty DecreaseCommandProperty
IncreaseCommandProperty
Identifies the IncreaseCommand dependency property. This field is read-only.
public static readonly DependencyProperty IncreaseCommandProperty
ItemContainerStyleProperty
Identifies the ItemContainerStyle dependency property. This field is read-only.
public static readonly DependencyProperty ItemContainerStyleProperty
ItemsPanelProperty
Identifies the ItemsPanel dependency property. This field is read-only.
public static readonly DependencyProperty ItemsPanelProperty
TotalProperty
Identifies the Total dependency property. This field is read-only.
public static readonly DependencyProperty TotalProperty
ValueProperty
Identifies the Value dependency property. This field is read-only.
public static readonly DependencyProperty ValueProperty