diff options
Diffstat (limited to 'Software/Visual_Studio/Tango.Touch/Controls/TouchListBox.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.Touch/Controls/TouchListBox.cs | 7 |
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); } - - } } |
