Пример #1
0
        private void CreateEllipsisButton(int pageIndex)
        {
            var button = new NumericButton
            {
                Content          = "...",
                GroupName        = groupName,
                IsEllipsisButton = true,
                PageIndex        = pageIndex,
                IsChecked        = false,
            };

            button.Click += OnNumericButtonClick;

            numericButtons.Items.Add(button);
        }
Пример #2
0
        private void CreateNumericButton(int pageIndex)
        {
            var button = new NumericButton
            {
                Content          = $"{pageIndex + 1}",
                GroupName        = groupName,
                IsEllipsisButton = false,
                PageIndex        = pageIndex,
                IsChecked        = pageIndex == PagedSource.PageIndex,
            };

            button.Click += OnNumericButtonClick;

            numericButtons.Items.Add(button);
        }