Example #1
0
        void StaggeredLayoutSelected(object sender, EventArgs e)
        {
            this.staggeredLayoutDelegate = new StaggeredLayoutDelegate(itemsCount);

            TKListViewStaggeredLayout layout = new TKListViewStaggeredLayout();

            layout.Delegate            = this.staggeredLayoutDelegate;
            layout.ItemSize            = new CGSize(200, 100);
            layout.HeaderReferenceSize = new CGSize(100, 30);
            layout.SpanCount           = 2;
            layout.ItemSpacing         = 1;
            layout.LineSpacing         = 1;
            layout.ScrollDirection     = this.scrollDirection;
            layout.AlignLastLine       = true;
            this.listView.Layout       = layout;
            this.SetSelectedOptionInSection(1, 1);
        }
Example #2
0
        void StaggeredLayoutSelected()
        {
            this.staggeredLayoutDelegate = new StaggeredLayoutDelegate(itemsCount);
            // >> listview-staggered-cs
            TKListViewStaggeredLayout layout = new TKListViewStaggeredLayout();

            layout.Delegate            = this.staggeredLayoutDelegate;
            layout.ItemSize            = new CGSize(200, 100);
            layout.HeaderReferenceSize = new CGSize(100, 30);
            layout.SpanCount           = 2;
            layout.ItemSpacing         = 1;
            layout.LineSpacing         = 1;
            layout.ScrollDirection     = this.scrollDirection;
            layout.AlignLastLine       = true;
            this.listView.Layout       = layout;
            // << listview-staggered-cs
            this.SetSelectedOption(1, 1);
        }
Example #3
0
        void StaggeredLayoutSelected()
        {
            this.staggeredLayoutDelegate = new StaggeredLayoutDelegate (itemsCount);

            TKListViewStaggeredLayout layout = new TKListViewStaggeredLayout ();
            layout.Delegate = this.staggeredLayoutDelegate;
            layout.ItemSize = new CGSize(200, 100);
            layout.HeaderReferenceSize = new CGSize(100, 30);
            layout.SpanCount = 2;
            layout.ItemSpacing = 1;
            layout.LineSpacing = 1;
            layout.ScrollDirection = this.scrollDirection;
            layout.AlignLastLine = true;
            this.listView.Layout = layout;
            this.SetSelectedOption (1, 1);
        }