With the new releases of the .NET platform and Visual studio, I was bit afraid being a WPF and XAML programmer as there was nothing new happening in windows side. But with the release of Windows 10 and introduction of UWP there will be great scope for XAML developers in the coming time. Lets get… Read More »
How to bind View and View model in WPF or how to set DataContext of View? In this article I will discuss about the different ways to bind the View and View Model in WPF. In one of my article I have discussed about the MVVM pattern in the WPF and its various components (i.e.… Read More »
Have you ever tried of searching the items in ListBox without any button event? In this article we will see how to search Filter the Items in the WPF listbox using CollectionViewSource. In the first part I will discuss about the CollectionViewSource. It’s functionalities and features followed by its working. Then I will use CollectionViewSource… Read More »
In this article I will discuss about the WPF MVVM(Model-View-View Model) design pattern. I will create a simple data driven application in WPF which will use MVVM pattern. I have used C# language and Visual Studio 2015 Community to develop the application. I have also used Entity Framework to interact with data base. First I… Read More »
In this article I will discuss about the IValueConverter interface of the WPF framework which is present in the PresentationFramework assembly. I will discuss about the syntax of using the IValueConvertor with binding class in the XAML with code example. Moreover if you want to learn about the binding in WPF you can check my… Read More »
In my previous post I have discussed about the data binding and data binding mode in WPF. In this article I will discuss about the UpdateSourceTrigger which provides the synchronization timing among the of source and target data binding with code examples.
Data binding Modes In my previous article I have discussed about the data binding in WPF and how we can bind the data provided to the UI elements of WPF. In this article I will walk you through the data binding modes present in WPF with sample code examples.
Data binding in WPF In this article I will discuss about the DataBinding in WPF. How we can achieve data binding at different levels in applications using the datacontext property and how it can be helpful for us to have a solid understanding of datacontext if we are working with property of one type present in… Read More »
Events in WPF Introduction In this article I will discuss about the event types in WPF. The type of events in WPF are Bubbling event, tunneling event which are routing events and direct event. I will also describe each of these events with example of each.
ListBoxItem ControlTemplate In this article I will show how we can change the ListBoxItem template for a ListBox in WPF to have a button functionality for the same where we can raise the OnClick() event as well as attach a Command to it.
PropertyChanged Event using INotifyPropertyChanged In WPF whenever we bind our view to the view-model class, there is always a need to propagate the changes in the view model to the UI. This is usually done by implementing the INotifyPropertyChanged interface to the view model class and subscribing to the raising the PropertyChanged event if any of… Read More »
Add/Edit/Delete Introduction In my previous article I have shown how to just display data from Database using the Linq to SQL. In this article I will show how to add, edit and delete the data from the datagrid in WPF using the Linq to SQL and BindingListCollectionView without much of the code behind coding.
In this article I will discuss how to retrieve the data from a database source and bind to a datagrid in WPF using Linq to SQL. The article is for the beginners who want to learn how to bind the data from database using the Linq To sql (dbml)file as DataContext and ObjectDataProvider in the… Read More »
WPF Templates What is a template in laymen’s term? A template is a shape or mold which we can apply on a look less or some randomly shaped piece of some object. E.g. suppose we have some randomly shaped clay and we want that clay to attain some shape may be like circle or triangle.… Read More »
Understanding Tranformation(LayoutTransform and RenderTranformation) Transformation helps us to map points of a particular shape or element from one coordinate space to another coordinate space. There can be many cases where we want to incorporate some animations in the WPF application. These animations can be incorporated with the help of transformations. A transformation can be used… Read More »
MeasureOverride and ArrangeOverride To build an effective and appealing UI in WPF we should be aware of the layout process which takes places while creating the controls and in turn to understand the layout process we should be aware of the MeasureOverride() and ArrangeOverride() methods of the FrameworkElement class which can in turn help us… Read More »