Syncfusion Maui Datapagerのロゴ

Syncfusion Maui Datapager

組織
syncfusion
syncfusion-maui-datapager

Implement and customize Syncfusion .NET MAUI DataPager (SfDataPager) for paginating large datasets into manageable pages. Use when working with MAUI paging, SfDataPager, normal or on-demand paging, numeric buttons, navigation buttons, page navigation, PageChanging or PageChanged events, or styling the pager.

概要

公開者syncfusion
リポジトリmaui-ui-components-skills
スキル名syncfusion-maui-datapager
スター
61
フォーク
1
同梱ファイル
5
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 5個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    syncfusionがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルSyncfusion Maui DatapagerをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/syncfusion/maui-ui-components-skills/tree/master/skills/syncfusion-maui-datapager
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/syncfusion/maui-ui-components-skills.git /tmp/maui-ui-components-skills
mkdir -p .claude/skills
cp -r /tmp/maui-ui-components-skills/skills/syncfusion-maui-datapager .claude/skills/syncfusion-maui-datapager
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでSyncfusion Maui Datapagerを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にSyncfusion Maui Datapagerを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Syncfusion Maui Datapagerは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Implementing .NET MAUI DataPager

A comprehensive skill for implementing and customizing the Syncfusion .NET MAUI DataPager (SfDataPager) control. The DataPager is a standalone pagination control that divides large datasets into manageable pages and integrates seamlessly with data display controls like the SfDataGrid.

When to Use This Skill

Use this skill when you need to:

  • Display large datasets in paginated views in a .NET MAUI application
  • Add pagination to a SfDataGrid or any items control
  • Choose between normal paging (load all upfront) and on-demand paging (load per page)
  • Configure numeric and navigation buttons (First, Last, Previous, Next)
  • Control button shape, size, font size, or orientation
  • Style the pager with custom colors or button templates
  • Handle page navigation events (PageChanging, PageChanged)
  • Navigate pages programmatically (MoveToFirstPage, MoveToPage, etc.)
  • Enable auto-ellipsis for large page ranges
  • Optimize memory for very large datasets with ResetCache

Component Overview

SfDataPager is a standalone pagination control for .NET MAUI that provides:

Core Features:

  • Normal and On-Demand paging modes
  • First, Last, Previous, Next, and numeric button navigation
  • Programmatic page switching (MoveToFirstPage, MoveToLastPage, MoveToNextPage, MoveToPreviousPage, MoveToPage)
  • Customizable display modes (choose which buttons to show)
  • Button shape, size, and font size customization
  • Horizontal or vertical orientation
  • Auto-ellipsis support for large page ranges
  • Comprehensive style and template customization via DataPagerStyle
  • PageChanging and PageChanged events
  • Memory optimization with ResetCache for on-demand paging

Data Flow:

  • Bind data collection to SfDataPager.Source
  • SfDataPager.PagedSource exposes the current page's data
  • Bind PagedSource to a display control's ItemsSource (e.g., SfDataGrid)

NuGet Package: Syncfusion.Maui.DataPager

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Prerequisites (.NET 9 SDK, Visual Studio / VS Code / Rider)
  • Install the Syncfusion.Maui.DataPager NuGet package
  • Register Syncfusion core handler in MauiProgram.cs
  • Import the DataPager namespace (XAML and C#)
  • Create data model (OrderInfo) and repository (OrderInfoRepository)
  • Add SfDataPager with SfDataGrid (XAML and C#)
  • Source-to-PagedSource binding pattern

Paging Modes & Navigation

📄 Read: references/paging-modes.md

  • Normal paging (load entire collection upfront)
  • On-demand paging (UseOnDemandPaging, OnDemandLoading event)
  • LoadDynamicItems(StartIndex, PageSize)
  • PageCount for on-demand paging (instead of Source)
  • ResetCache() for memory optimization
  • Programmatic navigation (MoveToFirstPage, MoveToLastPage, MoveToNextPage, MoveToPreviousPage, MoveToPage)
  • Animated page navigation (MoveToPage with duration)
  • Boundary behavior (no exceptions at first/last page)

Customization

📄 Read: references/customization.md

  • ButtonShape (Rectangle, Circle)
  • NumericButtonsGenerateMode (Auto, explicit via NumericButtonCount)
  • ButtonSize and ButtonFontSize
  • DisplayMode (None, First, Last, Previous, Next, Numeric, and combinations)
  • AutoEllipsisMode (None, Before, After, Both)
  • AutoEllipsisText customization
  • Orientation (Horizontal, Vertical)

Appearance & Styling

📄 Read: references/appearance.md

  • DataPagerStyle overview and DefaultStyle assignment
  • Background colors (DataPager, navigation buttons, numeric buttons)
  • Selection colors (numeric button selection background and text)
  • Disabled navigation button colors
  • Navigation button templates (FirstPageButtonTemplate, LastPageButtonTemplate, NextPageButtonTemplate, PreviousPageButtonTemplate)

Events

📄 Read: references/events.md

  • PageChanging event (PageChangingEventArgs: OldPageIndex, NewPageIndex)
  • PageChanged event (PageChangedEventArgs: OldPageIndex, NewPageIndex)
  • When to use each event (before vs after navigation)
  • Event handler signatures and wiring (XAML and C#)

Quick Start

A minimal DataPager bound to a collection and paired with a SfDataGrid:

csharp
using Syncfusion.Maui.DataPager;
using Syncfusion.Maui.DataGrid;
using System.Collections.ObjectModel;

public class OrderInfo
{
    public string? OrderID { get; set; }
    public string? CustomerID { get; set; }
    public string? ShipCountry { get; set; }

    public OrderInfo(string orderId, string customerId, string country)
    {
        OrderID = orderId;
        CustomerID = customerId;
        ShipCountry = country;
    }
}

var orders = new ObservableCollection<OrderInfo>
{
    new OrderInfo("1001", "Maria Anders", "Germany"),
    new OrderInfo("1002", "Ana Trujillo", "Mexico"),
    new OrderInfo("1003", "Ant Fuller", "Mexico"),
    // ... more items
};

SfDataPager dataPager = new SfDataPager();
dataPager.PageSize = 15;
dataPager.NumericButtonCount = 10;
dataPager.Source = orders;

SfDataGrid dataGrid = new SfDataGrid();
dataGrid.ItemsSource = dataPager.PagedSource;

this.Content = dataGrid;

Namespace (XAML):

xaml
xmlns:pager="clr-namespace:Syncfusion.Maui.DataPager;assembly=Syncfusion.Maui.DataPager"

Don't forget to register the Syncfusion core handler in MauiProgram.cs:

csharp
builder.ConfigureSyncfusionCore();

Forgetting ConfigureSyncfusionCore() causes runtime errors when rendering the DataPager.

Common Patterns

Bind a DataGrid to paged data

xaml
<Grid>
    <Grid.RowDefinitions>
        <RowDefinition Height="*" />
        <RowDefinition Height="Auto" />
    </Grid.RowDefinitions>
    <syncfusion:SfDataGrid x:Name="dataGrid"
                           Grid.Row="0"
                           ItemsSource="{Binding Source={x:Reference dataPager}, Path=PagedSource}" />
    <Border Grid.Row="1" Padding="5">
        <pager:SfDataPager x:Name="dataPager"
                           PageSize="15"
                           NumericButtonCount="10"
                           Source="{Binding Orders}" />
    </Border>
</Grid>

Load pages on demand

csharp
dataPager.UseOnDemandPaging = true;
dataPager.PageCount = 67; // total pages, e.g. 1000 items / 15 per page
dataPager.OnDemandLoading += (sender, e) =>
{
    dataPager.LoadDynamicItems(e.StartIndex, orders.Skip(e.StartIndex).Take(e.PageSize));
};

Navigate programmatically

csharp
dataPager.MoveToFirstPage();
dataPager.MoveToPreviousPage();
dataPager.MoveToNextPage();
dataPager.MoveToLastPage();
dataPager.MoveToPage(5);
// Animated navigation: MoveToPage(pageIndex, durationMs, animate)
dataPager.MoveToPage(5, 300, true);

Style the pager

csharp
DataPagerStyle style = new DataPagerStyle();
style.NumericButtonSelectionBackgroundColor = Color.FromArgb("#CDB4DB");
style.NumericButtonBackgroundColor = Color.FromArgb("#FFC8DD");
style.NavigationButtonBackgroundColor = Color.FromArgb("#90E0EF");
style.NavigationButtonIconColor = Color.FromArgb("#0077B6");
dataPager.DefaultStyle = style;

Choosing the right reference

User wants to...Read
Set up the DataPager for the first timereferences/getting-started.md
Choose normal vs on-demand paging or navigate pagesreferences/paging-modes.md
Change button shape, size, display mode, ellipsis, or orientationreferences/customization.md
Apply colors, styles, or button templatesreferences/appearance.md
Handle page change eventsreferences/events.md

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Syncfusion Maui Datapager」では何ができますか?

Implement and customize Syncfusion .NET MAUI DataPager (SfDataPager) for paginating large datasets into manageable pages. Use when working with MAUI paging, SfDataPager, normal or on-demand paging, numeric buttons, navigation buttons, page navigation, PageChanging or PageChanged events, or styling the pager.

TypingMindでSyncfusion Maui Datapagerを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Syncfusion Maui Datapagerはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにSyncfusion Maui Datapagerをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/syncfusion/maui-ui-components-skills/tree/master/skills/syncfusion-maui-datapagerを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Syncfusion Maui Datapagerを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Syncfusion Maui Datapagerは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもSyncfusion Maui Datapagerを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Syncfusion Maui Datapager」は無料ですか?

syncfusionがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇