diff options
| author | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2023-07-12 11:55:36 +0300 |
|---|---|---|
| committer | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2023-07-12 11:55:36 +0300 |
| commit | 9f36a1101aea71556c3f2377dd8fc293f23335be (patch) | |
| tree | 9c67b66714df4c70b5c9ec5a2c07e8669f693b6d /Software/Visual_Studio/PPC/Tango.PPC.UI/Graphs/RealTimeGraph.cs | |
| parent | a906e7316bc179888f475f6bcff5ddc20a501346 (diff) | |
| download | Tango-9f36a1101aea71556c3f2377dd8fc293f23335be.tar.gz Tango-9f36a1101aea71556c3f2377dd8fc293f23335be.zip | |
RealTimeGraph, added property to set angle horizontal axis label.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Graphs/RealTimeGraph.cs')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.UI/Graphs/RealTimeGraph.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Graphs/RealTimeGraph.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/Graphs/RealTimeGraph.cs index 303b18892..7e653f351 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Graphs/RealTimeGraph.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Graphs/RealTimeGraph.cs @@ -106,6 +106,16 @@ namespace Tango.PPC.UI.Graphs public static readonly DependencyProperty HorizontalAxisVisibilityProperty = DependencyProperty.Register("HorizontalAxisVisibility", typeof(Visibility), typeof(RealTimeGraph), new PropertyMetadata(Visibility.Visible)); + public double AxisLabelAngle + { + get { return (double)GetValue(AxisLabelAngleProperty); } + set { SetValue(AxisLabelAngleProperty, value); } + } + + // Using a DependencyProperty as the backing store for AxisLabelAngle. This enables animation, styling, binding, etc... + public static readonly DependencyProperty AxisLabelAngleProperty = + DependencyProperty.Register("AxisLabelAngle", typeof(double), typeof(RealTimeGraph), new PropertyMetadata(-30.0)); + public Visibility VerticalAxisVisibility { get { return (Visibility)GetValue(VerticalAxisVisibilityProperty); } |
