aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Touch/Controls/TouchVirtualizedContentControl.cs
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-10-16 00:04:05 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-10-16 00:04:05 +0300
commit8034a09786a1c23d268d44bc38e158784b567156 (patch)
tree11dd382c1fb32f1e9b2d4cb6831f15fae6ad43aa /Software/Visual_Studio/Tango.Touch/Controls/TouchVirtualizedContentControl.cs
parent00a7829f0c0ee27b41fbc93ebb071b19c0da3986 (diff)
downloadTango-8034a09786a1c23d268d44bc38e158784b567156.tar.gz
Tango-8034a09786a1c23d268d44bc38e158784b567156.zip
Dropped PPC Job Additional Tools.
Diffstat (limited to 'Software/Visual_Studio/Tango.Touch/Controls/TouchVirtualizedContentControl.cs')
-rw-r--r--Software/Visual_Studio/Tango.Touch/Controls/TouchVirtualizedContentControl.cs28
1 files changed, 16 insertions, 12 deletions
diff --git a/Software/Visual_Studio/Tango.Touch/Controls/TouchVirtualizedContentControl.cs b/Software/Visual_Studio/Tango.Touch/Controls/TouchVirtualizedContentControl.cs
index 72bb7dd06..bb9f260c0 100644
--- a/Software/Visual_Studio/Tango.Touch/Controls/TouchVirtualizedContentControl.cs
+++ b/Software/Visual_Studio/Tango.Touch/Controls/TouchVirtualizedContentControl.cs
@@ -128,26 +128,30 @@ namespace Tango.Touch.Controls
Rect bounds = new Rect(_location.X, _location.Y, ActualWidth, ActualHeight);
Rect rect = new Rect(0.0, _scrollViewer.GetScrollPosition(), _border_viewport.ActualWidth, _border_viewport.ActualHeight);
- if (bounds.IntersectsWith(rect))
+
+ if (_innerBorder != null)
{
- if (_innerBorder.Visibility == Visibility.Hidden)
+ if (bounds.IntersectsWith(rect))
{
- //Debug.WriteLine("Visible");
- Dispatcher.BeginInvoke(new Action(() =>
+ if (_innerBorder.Visibility == Visibility.Hidden)
{
- _innerBorder.Visibility = Visibility.Visible;
- }), DispatcherPriority.Background);
+ //Debug.WriteLine("Visible");
+ Dispatcher.BeginInvoke(new Action(() =>
+ {
+ _innerBorder.Visibility = Visibility.Visible;
+ }), DispatcherPriority.Background);
+ }
}
- }
- else
- {
- if (_innerBorder.Visibility == Visibility.Visible)
+ else
{
- Dispatcher.BeginInvoke(new Action(() =>
+ if (_innerBorder.Visibility == Visibility.Visible)
{
+ Dispatcher.BeginInvoke(new Action(() =>
+ {
//Debug.WriteLine("Hidden");
_innerBorder.Visibility = Visibility.Hidden;
- }), DispatcherPriority.Background);
+ }), DispatcherPriority.Background);
+ }
}
}
}