Browse Source

Clear selection when leaving menu.

pull/58/head
Steven Kirk 11 years ago
parent
commit
c2ac02ec23
  1. 6
      Perspex.Controls/Menu.cs

6
Perspex.Controls/Menu.cs

@ -156,6 +156,12 @@ namespace Perspex.Controls
}
}
protected override void OnLostFocus(RoutedEventArgs e)
{
base.OnLostFocus(e);
this.SelectedItem = null;
}
/// <summary>
/// Called when a submenu opens somewhere in the menu.
/// </summary>

Loading…
Cancel
Save