Skip to content

Conversation

@edgarfgp
Copy link
Member

@edgarfgp edgarfgp commented May 5, 2025

No description provided.

@edgarfgp edgarfgp marked this pull request as ready for review May 10, 2025 17:04
@edgarfgp edgarfgp requested a review from Copilot May 18, 2025 17:15
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the Fabulous.Avalonia codebase to add support for Avalonia 11.3.0 features by introducing new properties and corresponding builder extensions across various control modules and updating a package dependency.

  • Added ShowSuggestions for styled elements.
  • Introduced new spacing and alignment properties in panels (WrapPanel, UniformGrid, Grid, DockPanel) and imaging controls.
  • Updated sample pages to demonstrate new properties and bumped the Avalonia.Controls.TreeDataGrid package version.

Reviewed Changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/Fabulous.Avalonia/Views/_StyledElement.fs Added ShowSuggestions property and corresponding builder extension.
src/Fabulous.Avalonia/Views/Panels/WrapPanel.fs Added ItemsAlignment, ItemSpacing, and LineSpacing properties along with builder overloads.
src/Fabulous.Avalonia/Views/Panels/UniformGrid.fs Introduced RowSpacing and ColumnSpacing properties and extensions.
src/Fabulous.Avalonia/Views/Panels/Grid.fs Added ColumnSpacing and RowSpacing properties and their builder extensions.
src/Fabulous.Avalonia/Views/Panels/DockPanel.fs Added HorizontalSpacing and VerticalSpacing properties and corresponding builder extensions.
src/Fabulous.Avalonia/Views/Imaging/Image.fs Added BlendMode property and builder extension.
src/Fabulous.Avalonia/Views/Controls/Primitives/Popup.fs Added ShouldUseOverlayLayer and TakesFocusFromNativeControl properties and builder extensions.
samples/Gallery/Pages/* Updated sample pages to include new properties.
extensions/Fabulous.Avalonia.TreeDataGrid/*.fsproj Updated the TreeDataGrid package version.
Comments suppressed due to low confidence (1)

src/Fabulous.Avalonia/Views/Panels/DockPanel.fs:18

  • The property name 'HorizontalSpacingSpacing' appears to include a duplicated term. Consider renaming it to 'HorizontalSpacing' to maintain consistency and clarity.
let HorizontalSpacingSpacing = Attributes.defineAvaloniaPropertyWithEquality DockPanel.HorizontalSpacingProperty

@edgarfgp edgarfgp merged commit a2be0a6 into main May 18, 2025
1 check passed
@edgarfgp edgarfgp deleted the new-properties branch May 18, 2025 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants