Cложные интерфейсы в Xamarin.Forms

  • View
    111

  • Download
    3

  • Category

    Mobile

Embed Size (px)

Text of Cложные интерфейсы в Xamarin.Forms

Xamarin.Forms

Xamarin.Forms

? FastGrid FastGrid

FastGrid

https://github.com/twintechs/TwinTechsFormsLib

UICollectionView iOS

RecyclerView Android

FastGrid, :

iOSLayout UICollectionViewFlowLayout

AndroidLayout GridLayoutManager Grid Span

FastGrid, Template Selectorvar templateSelector = new FastGridTemplateSelector();var productWidth = screenWidth / 3 - 1;templateSelector.DataTemplates.AddRange(new[] { new FastGridDataTemplate(typeof (ProductModel).Name, typeof (ProductViewCell), new Size(productWidth, 120)), new FastGridDataTemplate(typeof (string).Name, typeof (LoadingShopViewCell), new Size(screenWidth, 140))});templateSelector.Prepare();

FastGrid, Pull-To-RefreshiOS UIRefreshControl

Android SwipeRefreshLayout

FastGrid, Load more 1.

2. ObservableRangeCollection

ObservableRangeCollection:Collection,INotifyCollectionChanged

NotifyCollectionChangedAction.AddNotifyCollectionChangedAction.RemoveNotifyCollectionChangedAction.Reset

, Layout

public enum ProductLayoutViewTypes { Image, Price, OriginalPrice, Discount, }

1. FastGrid2. 3.

slava.chernikoff@binwell.com

XF