This example demonstrates how to create a State Indicator.
Please read the following help topic for step-by-step instructions: Create a State Indicator.
Files to Review
Documentation
Does this example address your development requirements/objectives?
(you will be redirected to DevExpress.com to submit your response)
Example Code
XAML<Window x:Class="DXGauges_StateIndicator.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:dxga="http://schemas.devexpress.com/winfx/2008/xaml/gauges"
Title="MainWindow" Height="350" Width="525" >
<Grid>
<dxga:StateIndicatorControl Name="stateIndicatorControl1" StateIndex="2"
MouseEnter="stateIndicatorControl1_MouseEnter"
MouseLeave="stateIndicatorControl1_MouseLeave">
<!--region #Model-->
<dxga:StateIndicatorControl.Model>
<dxga:SmileStateIndicatorModel />
</dxga:StateIndicatorControl.Model>
<!--endregion #Model-->
</dxga:StateIndicatorControl>
</Grid>
</Window>
C#using System.Windows;
using System.Windows.Input;
namespace DXGauges_StateIndicator {
public partial class MainWindow : Window {
public MainWindow() {
InitializeComponent();
}
private void stateIndicatorControl1_MouseEnter(object sender, MouseEventArgs e) {
stateIndicatorControl1.StateIndex = 0;
}
private void stateIndicatorControl1_MouseLeave(object sender, MouseEventArgs e) {
stateIndicatorControl1.StateIndex = 2;
}
}
}