Posts

Showing posts from February, 2022

MCP Server with C#: What Is It, How It Works, Benefits & Practical Example

MCP Server with C#: What Is It, How It Works, Benefits & Practical Example C# & .NET Developer Guide MCP Server with C#: What Is It, How It Works, Benefits & Practical Example A complete, beginner-friendly guide to the Model Context Protocol (MCP) and how to build an MCP Server using C# and .NET — from zero to working code. C# / .NET AI Integration MCP Protocol Beginner-Friendly Table of Contents Introduction — The Problem MCP Solves What Is MCP (Model Context Protocol)? What Is an MCP Server? How MCP Works — Step by Step Why Use MCP with C# and .NET? MCP vs Traditional REST API Real-World Scenario: Customer Lookup Building a Simple MCP Server in C# Project Setup and Structure Creating Your First MCP Tool in C# Extending to a Database Query MCP Tools, Resources, and Prompts Benefits of Usi...

How to implement custom paging on a WPF DataGrid?

Image
In this post we are going to learn the pagination in the data grid where we will have options to select the number of records to be displayed per page in the data grid. you can select the count from the record per page combobox and based on that you can see the records. I will add the four buttons which is used for show the first page, previous page, next page and last page. Below is DataGrid control code:  <DataGrid Grid.Row="1" ItemsSource="{Binding EmployeeCollection}"                    AutoGenerateColumns="False" CanUserAddRows="False">             <DataGrid.Columns>                 <DataGridTextColumn Header="ID" Binding="{Binding ID}"/>                 <DataGridTextColumn Header="Name" Binding="{Binding Name}"/>                 <DataGridTextColumn He...