aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/SideChains
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/SideChains
parenta906e7316bc179888f475f6bcff5ddc20a501346 (diff)
downloadTango-9f36a1101aea71556c3f2377dd8fc293f23335be.tar.gz
Tango-9f36a1101aea71556c3f2377dd8fc293f23335be.zip
RealTimeGraph, added property to set angle horizontal axis label.
Diffstat (limited to 'Software/Visual_Studio/SideChains')
-rw-r--r--Software/Visual_Studio/SideChains/RealTimeGraphX-master/RealTimeGraphX.WPF/Themes/Generic.xaml2
-rw-r--r--Software/Visual_Studio/SideChains/RealTimeGraphX-master/RealTimeGraphX.WPF/WpfGraphAxisControl.cs14
2 files changed, 15 insertions, 1 deletions
diff --git a/Software/Visual_Studio/SideChains/RealTimeGraphX-master/RealTimeGraphX.WPF/Themes/Generic.xaml b/Software/Visual_Studio/SideChains/RealTimeGraphX-master/RealTimeGraphX.WPF/Themes/Generic.xaml
index 64145bcfa..88d22f9e2 100644
--- a/Software/Visual_Studio/SideChains/RealTimeGraphX-master/RealTimeGraphX.WPF/Themes/Generic.xaml
+++ b/Software/Visual_Studio/SideChains/RealTimeGraphX-master/RealTimeGraphX.WPF/Themes/Generic.xaml
@@ -85,7 +85,7 @@
</Rectangle>
<TextBlock VerticalAlignment="Bottom" Text="{Binding DisplayText}" RenderTransformOrigin="0.5,0.5">
<TextBlock.RenderTransform>
- <RotateTransform Angle="-30" />
+ <RotateTransform Angle="{Binding RelativeSource={RelativeSource AncestorType=local:WpfGraphAxisControl}, Path=AxisLabelAngle}" />
</TextBlock.RenderTransform>
</TextBlock>
</DockPanel>
diff --git a/Software/Visual_Studio/SideChains/RealTimeGraphX-master/RealTimeGraphX.WPF/WpfGraphAxisControl.cs b/Software/Visual_Studio/SideChains/RealTimeGraphX-master/RealTimeGraphX.WPF/WpfGraphAxisControl.cs
index aa738b203..e445d29b9 100644
--- a/Software/Visual_Studio/SideChains/RealTimeGraphX-master/RealTimeGraphX.WPF/WpfGraphAxisControl.cs
+++ b/Software/Visual_Studio/SideChains/RealTimeGraphX-master/RealTimeGraphX.WPF/WpfGraphAxisControl.cs
@@ -46,6 +46,20 @@ namespace RealTimeGraphX.WPF
public static readonly DependencyProperty OrientationProperty =
DependencyProperty.Register("Orientation", typeof(Orientation), typeof(WpfGraphAxisControl), new PropertyMetadata(Orientation.Vertical));
+
+
+ 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(WpfGraphAxisControl), new PropertyMetadata(-30.0));
+
+
+
/// <summary>
/// Gets or sets the tick item template.
/// </summary>