Browse Source

Mark SizeToContent with [Flags].

And explicitly assign values.
pull/1364/head
Steven Kirk 8 years ago
parent
commit
2af1f20108
  1. 9
      src/Avalonia.Controls/Window.cs

9
src/Avalonia.Controls/Window.cs

@ -19,27 +19,28 @@ namespace Avalonia.Controls
/// <summary> /// <summary>
/// Determines how a <see cref="Window"/> will size itself to fit its content. /// Determines how a <see cref="Window"/> will size itself to fit its content.
/// </summary> /// </summary>
[Flags]
public enum SizeToContent public enum SizeToContent
{ {
/// <summary> /// <summary>
/// The window will not automatically size itself to fit its content. /// The window will not automatically size itself to fit its content.
/// </summary> /// </summary>
Manual, Manual = 0,
/// <summary> /// <summary>
/// The window will size itself horizontally to fit its content. /// The window will size itself horizontally to fit its content.
/// </summary> /// </summary>
Width, Width = 1,
/// <summary> /// <summary>
/// The window will size itself vertically to fit its content. /// The window will size itself vertically to fit its content.
/// </summary> /// </summary>
Height, Height = 2,
/// <summary> /// <summary>
/// The window will size itself horizontally and vertically to fit its content. /// The window will size itself horizontally and vertically to fit its content.
/// </summary> /// </summary>
WidthAndHeight, WidthAndHeight = 3,
} }
/// <summary> /// <summary>

Loading…
Cancel
Save