This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Platforms/Android/CollectionViewAdapter.cs | |
using Android.Content; | |
using AndroidX.RecyclerView.Widget; | |
using Microsoft.Maui.Controls.Handlers.Items; | |
public class CollectionViewAdapter : ReorderableItemsViewAdapter<ReorderableItemsView, IGroupableItemsViewSource> | |
{ | |
private readonly List<DataTemplate> _dataTemplates = new(); | |
private const int _textItemViewType = 41; // Microsoft.Maui.Controls.Handlers.Items.ItemViewType.TextItem | |
private const int _templatedItemViewType = 42; // Microsoft.Maui.Controls.Handlers.Items.ItemViewType.TemplatedItem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Xamarin.Forms; | |
namespace App.Controls | |
{ | |
public class SizeLimitView : ContentView | |
{ | |
public static readonly BindableProperty MaximumWidthRequestProperty = BindableProperty.Create(nameof(MaximumWidthRequest), typeof(double), typeof(SizeLimitView), -1.0); | |
public static readonly BindableProperty MaximumHeightRequestProperty = BindableProperty.Create(nameof(MaximumHeightRequest), typeof(double), typeof(SizeLimitView), -1.0); |