Class RollingCharacter
Represents Segment of the Rolling Gauge
Inheritance
Namespace: Syncfusion.Windows.Gauge
Assembly: Syncfusion.Gauge.WPF.dll
Syntax
public class RollingCharacter : ContentControl
Examples
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Media;
using System.Windows.Controls;
using System.Windows.Data;
using Syncfusion.Windows.Shared;
using Syncfusion.Windows.Gauge;
namespace CharacterRollingGaugeSample
{
public partial class Window1 : Window
{
private DigitalGauge digitalGauge1;
public Window1()
{
InitializeComponent();
RollingGauge rollingGauge = new RollingGauge();
rollingGauge.SpaceBetWeenSegment = new Thickness(1);
rollingGauge.Value = "11";
rollingGauge.Unit = "KM";
rollingGauge.UnitPosition = UnitPosition.End;
RollingCharacter character = new RollingCharacter();
character.Background = Brushes.Gray;
character.BorderThickness = new Thickness(1);
character.Margin = new Thickness(1);
character.BorderBrush = Brushes.Black;
character.Value = '0';
character.CharacterIndex = 0;
rollingGauge.Segments.Add(character);
this.Content = rollingGauge;
}
}
}
Constructors
RollingCharacter()
Declaration
public RollingCharacter()
Fields
CharacterIndexProperty
Identifies the CharacterIndex dependency property.
Declaration
public static readonly DependencyProperty CharacterIndexProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
CornerRadiusProperty
Identifies the CornerRadius dependency property.
Declaration
public static readonly DependencyProperty CornerRadiusProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ValueProperty
Identifies the Value dependency property.
Declaration
public static readonly DependencyProperty ValueProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
CharacterIndex
Gets or sets the CharacterIndex
Declaration
public int CharacterIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | Type: System.Int32 |
CornerRadius
Gets or sets the CornerRadius
Declaration
public CornerRadius CornerRadius { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.CornerRadius | Type: System.Double |
Value
Gets or sets the Value
Declaration
public char Value { get; set; }
Property Value
Type | Description |
---|---|
System.Char | Type: System.Char |
Methods
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call System.Windows.FrameworkElement.ApplyTemplate.
Declaration
public override void OnApplyTemplate()
OnCharacterIndexChanged(DependencyPropertyChangedEventArgs)
Raises the CharacterIndexChanged event.
Declaration
protected virtual void OnCharacterIndexChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs instance containing the event data. |
OnInitialized(EventArgs)
Raises the System.Windows.FrameworkElement.Initialized event. This method is invoked whenever System.Windows.FrameworkElement.IsInitialized is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e | The System.Windows.RoutedEventArgs that contains the event data. |
OnValueChanged(DependencyPropertyChangedEventArgs)
Raises the ValueChanged event.
Declaration
protected virtual void OnValueChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs instance containing the event data. |
Events
CharacterIndexChanged
Event that is raised when CharacterIndex property is changed.
Declaration
public event PropertyChangedCallback CharacterIndexChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
ValueChanged
Event that is raised when Value property is changed.
Declaration
public event PropertyChangedCallback ValueChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |