Browse Source

Naming/doc adjustments.

pull/58/head
Steven Kirk 11 years ago
parent
commit
a40e4963b6
  1. 21
      Perspex.Controls/MenuItem.cs

21
Perspex.Controls/MenuItem.cs

@ -17,7 +17,6 @@ namespace Perspex.Controls
using Perspex.Controls.Presenters; using Perspex.Controls.Presenters;
using Perspex.VisualTree; using Perspex.VisualTree;
/// <summary> /// <summary>
/// A menu item control. /// A menu item control.
/// </summary> /// </summary>
@ -363,8 +362,8 @@ namespace Perspex.Controls
if (popup != null) if (popup != null)
{ {
popup.PopupRootCreated += this.PopupRootCreated; popup.PopupRootCreated += this.PopupRootCreated;
popup.Opened += this.PopupRootOpened; popup.Opened += this.PopupOpened;
popup.Closed += this.PopupRootClosed; popup.Closed += this.PopupClosed;
} }
} }
@ -400,7 +399,7 @@ namespace Perspex.Controls
} }
/// <summary> /// <summary>
/// Called when the MenuItem's popup root is opened. /// Called when the submenu's <see cref="PopupRoot"/> is created.
/// </summary> /// </summary>
/// <param name="sender">The event sender.</param> /// <param name="sender">The event sender.</param>
/// <param name="e">The event args.</param> /// <param name="e">The event args.</param>
@ -433,7 +432,12 @@ namespace Perspex.Controls
} }
} }
private void PopupRootOpened(object sender, EventArgs e) /// <summary>
/// Called when the submenu's <see cref="Popup"/> is opened.
/// </summary>
/// <param name="sender">The event sender.</param>
/// <param name="e">The event args.</param>
private void PopupOpened(object sender, EventArgs e)
{ {
var selected = this.SelectedItem; var selected = this.SelectedItem;
@ -448,7 +452,12 @@ namespace Perspex.Controls
} }
} }
private void PopupRootClosed(object sender, EventArgs e) /// <summary>
/// Called when the submenu's <see cref="Popup"/> is closed.
/// </summary>
/// <param name="sender">The event sender.</param>
/// <param name="e">The event args.</param>
private void PopupClosed(object sender, EventArgs e)
{ {
this.SelectedItem = null; this.SelectedItem = null;
} }

Loading…
Cancel
Save