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

  • Published on
    06-Apr-2017

  • View
    110

  • Download
    3

Embed Size (px)

Transcript

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

Recommended

View more >