Maui icon indicating copy to clipboard operation
Maui copied to clipboard

[Proposal] HexLayout

Open TheCodeTraveler opened this issue 4 years ago • 0 comments

HexLayout

  • [x] Proposed
  • [x] Prototype
  • [ ] Implementation: Not Started
    • [ ] iOS Support
    • [ ] Android Support
    • [ ] macOS Support
    • [ ] Windows Support
  • [ ] Unit Tests: Not Started
  • [ ] Sample: Not Started
  • [ ] Documentation: Not Started

Summary

A Layout that arranges the elements in a honeycomb pattern

Detailed Design

HexLayout.shared.cs

public class HexLayout : Layout<View>
{
  public static readonly BindableProperty OrientationProperty;
  public static readonly BindableProperty ColumnCountProperty;
  public static readonly BindableProperty RowCountProperty;
  public static readonly BindableProperty ColumnProperty;
  public static readonly BindableProperty RowProperty;
  
  public HexOrientation Orientation { get; set; }
  public int ColumnCount { get; set; }
  public int RowCount { get; set; }
  public int Column { get; set; }
  public int Row { get; set; }

  public static int GetColumn(BindableObject b);
  public static void SetColumn(BindableObject b);
}

Usage Syntax

TheCodeTraveler avatar Sep 28 '21 03:09 TheCodeTraveler