Exemple #1
0
 /// <summary>Handles the SizeChanged event for all manged buttons</summary>
 /// <remarks>
 /// If it is the last of manged buttons returning the event then all
 /// buttons will be resized in width to the widest button
 /// </remarks>
 /// <param name="sender">The button sending the SizeChanged event</param>
 /// <param name="args">The SizeChanged information</param>
 private void SizeChangedHandler(object sender, SizeChangedEventArgs args)
 {
     if (this.AreAllButtonsSized(sender as Button))
     {
         this.buttonInfo.ForEach((x) => this.OnSizeChanged(x));
         WPF_ControlHelpers.ResizeToWidest(this.buttonObjs);
     }
 }
Exemple #2
0
 /// <summary>Called before the managed buttons are to be changed</summary>
 public void PrepForChange()
 {
     WPF_ControlHelpers.ForceButtonMinMax(this.buttonObjs);
     this.buttonInfo.ForEach((x) => this.PrepForChange(x));
 }