/// <summary>
 /// Initializes each element in the cool menu.
 /// </summary>
 /// <param name="parent">The parent CoolMenu.</param>
 /// <param name="element">The element of concern.</param>
 public virtual void Initialize(CoolMenu parent, CoolMenuItem element)
 {
     element.Height = MaxItemHeight * m_sizes[m_sizes.Length - 1];
     element.Width = MaxItemWidth * m_sizes[m_sizes.Length - 1];
 }
Esempio n. 2
0
 public override void Initialize(CoolMenu parent, CoolMenuItem element)
 {
     base.Initialize(parent, element);
     element.Background = new SolidColorBrush(Colors.Yellow);
 }