Пример #1
0
 VirtualizingPanelLayout IVirtualizingPanel.GetLayouter()
 {
     if (_layout == null)
     {
         _layout = new ItemsStackPanelLayout();
         _layout.BindToEquivalentProperty(this, nameof(Orientation));
         _layout.BindToEquivalentProperty(this, nameof(AreStickyGroupHeadersEnabled));
         _layout.BindToEquivalentProperty(this, nameof(GroupHeaderPlacement));
         _layout.BindToEquivalentProperty(this, nameof(GroupPadding));
     }
     return(_layout);
 }
Пример #2
0
        private void CreateLayoutIfNeeded()
        {
            if (_layout == null)
            {
                _layout = new ItemsStackPanelLayout();
                _layout.BindToEquivalentProperty(this, nameof(Orientation));
                _layout.BindToEquivalentProperty(this, nameof(AreStickyGroupHeadersEnabled));
                _layout.BindToEquivalentProperty(this, nameof(GroupHeaderPlacement));
                _layout.BindToEquivalentProperty(this, nameof(GroupPadding));
#if !XAMARIN_IOS
                _layout.BindToEquivalentProperty(this, nameof(CacheLength));
#endif
            }
        }
Пример #3
0
        VirtualizingPanelLayout IVirtualizingPanel.GetLayouter()
        {
            if (_layout == null)
            {
                _layout = new ItemsWrapGridLayout();
                _layout.BindToEquivalentProperty(this, nameof(Orientation));
                _layout.BindToEquivalentProperty(this, nameof(AreStickyGroupHeadersEnabled));
                _layout.BindToEquivalentProperty(this, nameof(ItemHeight));
                _layout.BindToEquivalentProperty(this, nameof(ItemWidth));
                _layout.BindToEquivalentProperty(this, nameof(MaximumRowsOrColumns));
                _layout.BindToEquivalentProperty(this, nameof(GroupHeaderPlacement));
                _layout.BindToEquivalentProperty(this, nameof(GroupPadding));
#if XAMARIN_ANDROID
                _layout.BindToEquivalentProperty(this, nameof(CacheLength));
#endif
            }
            return(_layout);
        }