|
using System.ComponentModel;
using Visiblox.Charts;
using System.Windows;
using System;
namespace SilverTrack.controls
{
public partial class GForceControl
{
/// <summary>
/// Lateral G-Force This is a dependency property
/// </summary>
public double Lateral
{
get { return (double)GetValue(LateralProperty); }
set { SetValue(LateralProperty, value); }
}
/// <summary>
/// Defines the Lateral dependnecy property.
/// </summary>
public static readonly DependencyProperty LateralProperty =
DependencyProperty.Register("Lateral", typeof(double), typeof(GForceControl),
new PropertyMetadata(0.0, new PropertyChangedCallback(OnLateralPropertyChanged)));
/// <summary>
/// Invoked when the Lateral property changes
/// </summary>
partial void OnLateralPropertyChanged(DependencyPropertyChangedEventArgs e);
private static void OnLateralPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
GForceControl control = d as GForceControl;
control.OnLateralPropertyChanged(e);
}
/// <summary>
/// Longitudinal G-Force This is a dependency property
/// </summary>
public double Long
{
get { return (double)GetValue(LongProperty); }
set { SetValue(LongProperty, value); }
}
/// <summary>
/// Defines the Long dependnecy property.
/// </summary>
public static readonly DependencyProperty LongProperty =
DependencyProperty.Register("Long", typeof(double), typeof(GForceControl),
new PropertyMetadata(0.0, new PropertyChangedCallback(OnLongPropertyChanged)));
/// <summary>
/// Invoked when the Long property changes
/// </summary>
partial void OnLongPropertyChanged(DependencyPropertyChangedEventArgs e);
private static void OnLongPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
GForceControl control = d as GForceControl;
control.OnLongPropertyChanged(e);
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.