Maui
Maui copied to clipboard
[Proposal] HexLayout
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);
}