aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/Graphs
diff options
context:
space:
mode:
authorVictoria Plitt <Victoria.Plitt@twine-s.com>2023-07-12 11:55:36 +0300
committerVictoria Plitt <Victoria.Plitt@twine-s.com>2023-07-12 11:55:36 +0300
commit9f36a1101aea71556c3f2377dd8fc293f23335be (patch)
tree9c67b66714df4c70b5c9ec5a2c07e8669f693b6d /Software/Visual_Studio/PPC/Tango.PPC.UI/Graphs
parenta906e7316bc179888f475f6bcff5ddc20a501346 (diff)
downloadTango-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')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/Graphs/RealTimeGraph.cs10
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/Graphs/RealTimeGraph.xaml2
2 files changed, 11 insertions, 1 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); }
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Graphs/RealTimeGraph.xaml b/Software/Visual_Studio/PPC/Tango.PPC.UI/Graphs/RealTimeGraph.xaml
index 8844f9627..6d50c4969 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Graphs/RealTimeGraph.xaml
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Graphs/RealTimeGraph.xaml
@@ -84,7 +84,7 @@
</Grid>
<realTimeGraphX:WpfGraphAxisControl Width="30" Visibility="{TemplateBinding VerticalAxisVisibility}" Orientation="Vertical" Controller="{TemplateBinding Controller}" StringFormat="{TemplateBinding StringFormat}" Ticks="{TemplateBinding VerticalTicks}" />
- <realTimeGraphX:WpfGraphAxisControl Height="38" Visibility="{TemplateBinding HorizontalAxisVisibility}" Orientation="Horizontal" Controller="{TemplateBinding Controller}" Grid.Column="1" Grid.Row="1" Ticks="{TemplateBinding HorizontalTicks}" StringFormat="hh\:mm"/>
+ <realTimeGraphX:WpfGraphAxisControl Height="38" Visibility="{TemplateBinding HorizontalAxisVisibility}" Orientation="Horizontal" Controller="{TemplateBinding Controller}" Grid.Column="1" Grid.Row="1" Ticks="{TemplateBinding HorizontalTicks}" StringFormat="hh\:mm" AxisLabelAngle="{TemplateBinding AxisLabelAngle}"/>
</Grid>
</Border>