WPF

WPF DataGrid – Filtering

WPF DataGrid provides a way to filter its bounded list. In the filter method, you can choose only those items from the list that you want to show in WPF DataGrid. Rest items will be hidden. DataGrid uses ListCollectionView class for filtering list of items. ListCollectionView ListCollectionView is a special …

WPF DataGrid – Filtering Read More
WPF

WPF Tab Control – Close Button

A very common requirement in TabControl is to show a close button (X) near the end of header of each TabItem. We can use ItemTemplate to customize the header section and show a close button (X) at the end of TabItem header. Close Button Example <Grid> <Grid.Resources> <DataTemplate x:Key=”CustomHeaderTemplate”> <DockPanel …

WPF Tab Control – Close Button Read More
WPF

WPF DataGrid – Custom Columns

In the last tutorial AutoGenerateColumns, I have shown how DataGrid automatically shows different columns based on the data types of data. But by using the Columns property, you can change how columns are generated and of which control. By default, WPF provides 5 different types of custom columns shown below: …

WPF DataGrid – Custom Columns Read More
WPF

WPF DataGrid – Selection Mode

WPF DataGrid provides different properties to select, unselect different rows and columns of grid. Single/Extended The SelectionMode property is used for selecting single/multiple row and columns. This property is an enum which have two values: Single Extended (Default) Single Single allows you to select only one row or column in …

WPF DataGrid – Selection Mode Read More
WPF

WPF DataGrid – Grouping

WPF DataGrid is also used for showing group of items DataGrid use ListCollectionView class for grouping the associated list. DataGrid GroupStyle.ContainerStyle provides a way to display Group Item detail and its associated items. ListCollectionView Class ListCollectionView constructor takes an IList collection and has a GroupDescriptions list property. In the GroupDescriptions …

WPF DataGrid – Grouping Read More

AJAX – AngularJS

Ajax is used for creating asynchronous web applications that get and store data from server without postbacks. In AngularJS $http object is used for get and post data from the server. $http use asynchronous techniques for interacting with server. A $http object returns a Promise object. A promise object represent …

AJAX – AngularJS Read More
WCF

WCF Architecture

WCF provides a runtime environment for developing distributed services that are interoperable, secure, and reliable. A service is a reusable unit of functionality that performs a particular task. A WCF Service exposes Web Service Definition Language (WSDL) file contains the available functionality and the communication methods supported by the service. …

WCF Architecture Read More
WCF

WCF Hello World Example

WCF is very popular platform for developing services. In this blog, we’ll create a very basic and simple example of WCF service in just 6┬ásteps. Steps are: Declare ServiceContract Declare DataContract Implement Service Configure Service Host Service Access Client Declare ServiceContract Create a new blank Console solution and name the …

WCF Hello World Example Read More