aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Touch/Controls/TouchNativeListBox.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-08-07 19:26:57 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-08-07 19:26:57 +0300
commit6511527e4b576d29fc97aa80479b61d7d1abc079 (patch)
tree9734dc9bc5b6c347c7fc651702419afa37d0d3d9 /Software/Visual_Studio/Tango.Touch/Controls/TouchNativeListBox.cs
parent3bcad30c7eacb41c134631f79bb50957751f11c7 (diff)
downloadTango-6511527e4b576d29fc97aa80479b61d7d1abc079.tar.gz
Tango-6511527e4b576d29fc97aa80479b61d7d1abc079.zip
Working on PPC Machine Setup !
Diffstat (limited to 'Software/Visual_Studio/Tango.Touch/Controls/TouchNativeListBox.cs')
-rw-r--r--Software/Visual_Studio/Tango.Touch/Controls/TouchNativeListBox.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Software/Visual_Studio/Tango.Touch/Controls/TouchNativeListBox.cs b/Software/Visual_Studio/Tango.Touch/Controls/TouchNativeListBox.cs
index ea464e8db..0a7e29c0a 100644
--- a/Software/Visual_Studio/Tango.Touch/Controls/TouchNativeListBox.cs
+++ b/Software/Visual_Studio/Tango.Touch/Controls/TouchNativeListBox.cs
@@ -61,12 +61,12 @@ namespace Tango.Touch.Controls
FrameworkElement element = obj as FrameworkElement;
if (element != null)
{
- if (SelectedValuePath == null)
+ if (String.IsNullOrWhiteSpace(SelectedValuePath))
{
ListBoxItem item = element as ListBoxItem;
- if (item != null && this.Items.Contains(item))
+ if (item != null)
{
- this.SelectedItem = item;
+ this.SelectedItem = item.DataContext;
}
}
else