Browse Source

PR comments

pull/11556/head
Nikita Tsukanov 3 years ago
parent
commit
86e5481686
  1. 2
      src/Avalonia.Base/Animation/TransitionObservableBase.cs
  2. 9
      src/Avalonia.Base/Layout/Layoutable.cs
  3. 9
      src/Avalonia.Controls/TopLevel.cs

2
src/Avalonia.Base/Animation/TransitionObservableBase.cs

@ -10,7 +10,7 @@ namespace Avalonia.Animation
/// Provides base for observables implementing transitions.
/// </summary>
/// <typeparam name="T">Type of the transitioned value.</typeparam>
public abstract class TransitionObservableBase<T> : SingleSubscriberObservableBase<T>, IObserver<double>
internal abstract class TransitionObservableBase<T> : SingleSubscriberObservableBase<T>, IObserver<double>
{
private readonly IEasing _easing;
private readonly IObservable<double> _progress;

9
src/Avalonia.Base/Layout/Layoutable.cs

@ -205,6 +205,15 @@ namespace Avalonia.Layout
}
}
/// <summary>
/// Executes a layout pass.
/// </summary>
/// <remarks>
/// You should not usually need to call this method explictly, the layout manager will
/// schedule layout passes itself.
/// </remarks>
public void UpdateLayout() => (this.GetVisualRoot() as ILayoutRoot)?.LayoutManager?.ExecuteLayoutPass();
/// <summary>
/// Gets or sets the width of the element.
/// </summary>

9
src/Avalonia.Controls/TopLevel.cs

@ -374,15 +374,6 @@ namespace Avalonia.Controls
ILayoutManager ILayoutRoot.LayoutManager => LayoutManager;
/// <summary>
/// Executes a layout pass.
/// </summary>
/// <remarks>
/// You should not usually need to call this method explictly, the layout manager will
/// schedule layout passes itself.
/// </remarks>
public void UpdateLayout() => LayoutManager?.ExecuteLayoutPass();
/// <summary>
/// Gets the platform-specific window implementation.
/// </summary>

Loading…
Cancel
Save