Explorar o código

add comments to new properties.

Dan Walmsley %!s(int64=7) %!d(string=hai) anos
pai
achega
89767c8b78
Modificáronse 1 ficheiros con 8 adicións e 1 borrados
  1. 8 1
      src/Avalonia.Controls/Primitives/Popup.cs

+ 8 - 1
src/Avalonia.Controls/Primitives/Popup.cs

@@ -39,7 +39,10 @@ namespace Avalonia.Controls.Primitives
         /// </summary>
         /// </summary>
         public static readonly StyledProperty<PlacementMode> PlacementModeProperty =
         public static readonly StyledProperty<PlacementMode> PlacementModeProperty =
             AvaloniaProperty.Register<Popup, PlacementMode>(nameof(PlacementMode), defaultValue: PlacementMode.Bottom);
             AvaloniaProperty.Register<Popup, PlacementMode>(nameof(PlacementMode), defaultValue: PlacementMode.Bottom);
-
+        
+        /// <summary>
+        /// Degines the <see cref="ObeyScreenEdges"/> property.
+        /// </summary>
         public static readonly StyledProperty<bool> ObeyScreenEdgesProperty =
         public static readonly StyledProperty<bool> ObeyScreenEdgesProperty =
             AvaloniaProperty.Register<Popup, bool>(nameof(ObeyScreenEdges));
             AvaloniaProperty.Register<Popup, bool>(nameof(ObeyScreenEdges));
 
 
@@ -139,6 +142,10 @@ namespace Avalonia.Controls.Primitives
             set { SetValue(PlacementModeProperty, value); }
             set { SetValue(PlacementModeProperty, value); }
         }
         }
 
 
+        /// <summary>
+        /// Gets or sets a value indicating whether the popup positions itself within the nearest screen boundary
+        /// when its opened at a position where it would otherwise overlap the screen edge.
+        /// </summary>
         public bool ObeyScreenEdges
         public bool ObeyScreenEdges
         {
         {
             get => GetValue(ObeyScreenEdgesProperty);
             get => GetValue(ObeyScreenEdgesProperty);