aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Controls
diff options
context:
space:
mode:
authorVictoria Plitt <Victoria.Plitt@twine-s.com>2021-01-05 12:22:32 +0200
committerVictoria Plitt <Victoria.Plitt@twine-s.com>2021-01-05 12:22:32 +0200
commit2aed6d0716797dfd6fb1238f76bced6710180508 (patch)
tree29976a2fb3aeab97b8aca5a5a40dc2da83c1dfbd /Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Controls
parent0567570ce97b80f264c7b9f4a632b99eb80c1a17 (diff)
downloadTango-2aed6d0716797dfd6fb1238f76bced6710180508.tar.gz
Tango-2aed6d0716797dfd6fb1238f76bced6710180508.zip
Fix ScrollChanged in JobOutlineControl
Related Work Items: #4243
Diffstat (limited to 'Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Controls')
-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)