diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-05-25 14:13:28 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-05-25 14:13:28 +0300 |
| commit | a7d1b350a7e6789942bd755f4a8dd48fb15a1a0a (patch) | |
| tree | 1e0b202b176a05d0921c91e67a43221479525d6c /Software/Visual_Studio/Tango.Touch | |
| parent | 4571fffeccd4b037553fdeb0ddaff8005de67f23 (diff) | |
| download | Tango-a7d1b350a7e6789942bd755f4a8dd48fb15a1a0a.tar.gz Tango-a7d1b350a7e6789942bd755f4a8dd48fb15a1a0a.zip | |
Batch import/export jobs.
Diffstat (limited to 'Software/Visual_Studio/Tango.Touch')
| -rw-r--r-- | Software/Visual_Studio/Tango.Touch/Controls/TouchListBox.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Software/Visual_Studio/Tango.Touch/Controls/TouchListBox.cs b/Software/Visual_Studio/Tango.Touch/Controls/TouchListBox.cs index 87e7717be..4fa50b7e6 100644 --- a/Software/Visual_Studio/Tango.Touch/Controls/TouchListBox.cs +++ b/Software/Visual_Studio/Tango.Touch/Controls/TouchListBox.cs @@ -138,8 +138,6 @@ 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); } @@ -230,7 +228,7 @@ namespace Tango.Touch.Controls } } - private List<TouchListBoxItem> GetItems() + public List<TouchListBoxItem> GetItems() { return _items_control.FindVisualChildren<TouchListBoxItem>().ToList(); } @@ -299,6 +297,7 @@ namespace Tango.Touch.Controls } else { + SelectedItem = item.DataContext; ItemSelectedCommand?.Execute(item.DataContext); } } @@ -360,5 +359,7 @@ namespace Tango.Touch.Controls var element = ScrollViewer.FindVisualChildren<FrameworkElement>().FirstOrDefault(x => x.DataContext == item); ScrollViewer.ScrollToElement(element); } + + } } |
