Beispiel #1
0
        /// <summary>
        ///     Recalculates the reflexive's width.
        /// </summary>
        public void UpdateWidth()
        {
            var calc = new WidthCalculator();

            calc.Add(Template);
            _width = Math.Max(MinWidth, calc.TotalWidth);
            NotifyPropertyChanged("Width");
        }
Beispiel #2
0
 /// <summary>
 ///     Recalculates the reflexive's width.
 /// </summary>
 public void UpdateWidth()
 {
     var calc = new WidthCalculator();
     calc.Add(Template);
     _width = Math.Max(MinWidth, calc.TotalWidth);
     NotifyPropertyChanged("Width");
 }