From 9f36a1101aea71556c3f2377dd8fc293f23335be Mon Sep 17 00:00:00 2001 From: Victoria Plitt Date: Wed, 12 Jul 2023 11:55:36 +0300 Subject: RealTimeGraph, added property to set angle horizontal axis label. --- .../Visual_Studio/PPC/Tango.PPC.UI/Graphs/RealTimeGraph.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Graphs/RealTimeGraph.cs') 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); } -- cgit v1.3.1