private void Initialize() { _header = new QueryView(_searchQuery); _header.ShouldBecomeFirstResponderOnClick = false; Add(_header); _progress = new UILabel(); _progress.Text = _searchQuery.Results.Completion.ProgressPercentage; _progress.TextColor = UIColor.DarkGray; _progress.TextAlignment = UITextAlignment.Right; _progress.Font = UIFont.BoldSystemFontOfSize(18); Add(_progress); _searchResultsCollection = new CollectionView(); _searchResultsCollection.IsOrderingEnabled = false; _searchResultsCollection.ScrolledToBottom += SearchResultsCollectionOnScrolledToBottom; Add(_searchResultsCollection); LoadNextPage(); Layout = () => { _header.ChangeSize(Frame.Width - 100, 50); _header.ChangePosition(0, 0); _progress.ChangeSize(100, 50); _progress.PositionToRight(this); _searchResultsCollection.ChangeSize(Frame.Width, Frame.Height); _searchResultsCollection.ChangePosition(0, _header.Frame.Bottom); }; Layout(); }
private void Initialize() { _collectionView = new CollectionView(); Add(_collectionView); Layout = () => { _collectionView.ChangeSize(Frame.Width, Frame.Height); _collectionView.ChangePosition(0, 0); }; Layout(); }
private void Initialize() { _filePaths = new CollectionView(); Add(_filePaths); _filePaths.AddRangeWithoutAnimation(new CollectionItem(new FileSystemNodeView(_root, path => Selected(path), _disableScheme, _enableScheme), new HorizontalSeparatorView())); Layout = () => { _filePaths.ChangeSize(Frame.Width, Frame.Height); _filePaths.ChangePosition(0, 0); }; Layout(); }