Example #1
0
 /// <summary>
 /// Updates view elements when the model changes and no automatic
 /// method is currently available.
 /// </summary>
 private void OnModelChanged(object sender, PropertyChangedEventArgs arguments)
 {
     switch (arguments.PropertyName)
     {
     case nameof(Model.Output):
         OutputScroller.UpdateLayout();
         OutputScroller.ChangeView(null, OutputScroller.ScrollableHeight, null);
         break;
     }
 }
 /// <summary>
 /// Updates view elements when the model changes and no automatic
 /// method is currently available.
 /// </summary>
 private void OnModelChanged(object sender, PropertyChangedEventArgs arguments)
 {
     switch (arguments.PropertyName)
     {
     case nameof(Model.Output):
         OutputScroller.UpdateLayout();
         OutputScroller.ScrollToVerticalOffset(OutputScroller.ScrollableHeight);
         break;
     }
 }