aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2021-01-05 17:26:16 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2021-01-05 17:26:16 +0200
commit5775356f93e5251d42c298c64d4a0583f49dcbd7 (patch)
tree1f84f739002484e5e853e22980256b296449c231 /Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs
parent89362e80c31118e6da63c8d0a0a98e201dbd2a72 (diff)
parenta9f6f542b73e33e981d0f9167c5ae37ece7fb924 (diff)
downloadTango-5775356f93e5251d42c298c64d4a0583f49dcbd7.tar.gz
Tango-5775356f93e5251d42c298c64d4a0583f49dcbd7.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/Tango/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs')
-rw-r--r--Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Controls/JobOutlineControl.cs9
1 files changed, 1 insertions, 8 deletions
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Controls/JobOutlineControl.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Controls/JobOutlineControl.cs
index 78f8c90a1..fb02c6c6e 100644
--- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Controls/JobOutlineControl.cs
+++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Controls/JobOutlineControl.cs
@@ -45,7 +45,6 @@ namespace Tango.PPC.Jobs
public JobOutlineControl() : base()
{
- Unloaded += JobOutlineControl_Unloaded;
DataContextChanged += JobOutlineControl_DataContextChanged;
Width = WIDTH;
}
@@ -66,13 +65,6 @@ namespace Tango.PPC.Jobs
}
#region events
- private void JobOutlineControl_Unloaded(object sender, RoutedEventArgs e)
- {
- if (_parentScrollViewer != null)
- {
- _parentScrollViewer.ScrollChanged -= ScrollViewer_ScrollChanged;
- }
- }
private void ScrollViewer_ScrollChanged(object sender, ScrollChangedEventArgs e)
{
@@ -94,6 +86,7 @@ namespace Tango.PPC.Jobs
if (_parentScrollViewer == null)
{
_parentScrollViewer = this.FindAncestor<ScrollViewer>();
+ _parentScrollViewer.ScrollChanged -= ScrollViewer_ScrollChanged;
_parentScrollViewer.ScrollChanged += ScrollViewer_ScrollChanged;
}
else if (_viewportHeight == 0)