コード例 #1
0
        private IReadOnlyList <int> GetAvailableResponsiveRows()
        {
            var rows = new List <int>();

            foreach (var child in this.AssociatedObject.Children)
            {
                var reponsiveRow = ResponsiveGrid.GetRow(child);
                if (rows.All(r => r != reponsiveRow))
                {
                    rows.Add(reponsiveRow);
                }
            }
            return(rows.OrderBy(r => r).ToList());
        }
コード例 #2
0
        private IReadOnlyList <BindableObject> GetChildrenByRow(int row)
        {
            var items = new List <BindableObject>();

            foreach (var child in this.AssociatedObject.Children)
            {
                var reponsiveRow = ResponsiveGrid.GetRow(child);
                if (reponsiveRow == row)
                {
                    items.Add(child);
                }
            }

            return(items);
        }