aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Touch/Controls/TouchListBox.cs
diff options
context:
space:
mode:
authorMirta <mirta@twine-s.com>2020-12-30 16:39:52 +0200
committerMirta <mirta@twine-s.com>2020-12-30 16:39:52 +0200
commit00a491d93733d4625ad329b2ba8237f445364b3f (patch)
tree4b24c6fa78d7648f4bb7cefafa464bb0b063fec4 /Software/Visual_Studio/Tango.Touch/Controls/TouchListBox.cs
parent124ad4150f80c6846fdee41dbbda9848c105f6e5 (diff)
downloadTango-00a491d9.tar.gz
Tango-00a491d9.zip
merge
Diffstat (limited to 'Software/Visual_Studio/Tango.Touch/Controls/TouchListBox.cs')
-rw-r--r--Software/Visual_Studio/Tango.Touch/Controls/TouchListBox.cs7
1 files changed, 3 insertions, 4 deletions
diff --git a/Software/Visual_Studio/Tango.Touch/Controls/TouchListBox.cs b/Software/Visual_Studio/Tango.Touch/Controls/TouchListBox.cs
index 4fa50b7e6..87e7717be 100644
--- a/Software/Visual_Studio/Tango.Touch/Controls/TouchListBox.cs
+++ b/Software/Visual_Studio/Tango.Touch/Controls/TouchListBox.cs
@@ -138,6 +138,8 @@ namespace Tango.Touch.Controls
public static readonly DependencyProperty ScrollBarVisibilityProperty =
DependencyProperty.Register("ScrollBarVisibility", typeof(Visibility), typeof(TouchListBox), new PropertyMetadata(Visibility.Visible));
+
+
public String ValuePath
{
get { return (String)GetValue(ValuePathProperty); }
@@ -228,7 +230,7 @@ namespace Tango.Touch.Controls
}
}
- public List<TouchListBoxItem> GetItems()
+ private List<TouchListBoxItem> GetItems()
{
return _items_control.FindVisualChildren<TouchListBoxItem>().ToList();
}
@@ -297,7 +299,6 @@ namespace Tango.Touch.Controls
}
else
{
- SelectedItem = item.DataContext;
ItemSelectedCommand?.Execute(item.DataContext);
}
}
@@ -359,7 +360,5 @@ namespace Tango.Touch.Controls
var element = ScrollViewer.FindVisualChildren<FrameworkElement>().FirstOrDefault(x => x.DataContext == item);
ScrollViewer.ScrollToElement(element);
}
-
-
}
}