MVVM stands for Model,View and ViewModel.It is an architectural pattern used for structuring WPF applications.Here we will understand a simple MVVM example in WPF. MVVM pattern Developing large applications introduces complexity because of lots of modules in the application.Maintaining and unit testing large applications becomes difficult as new features are added and application is changed.If the […]
WPF
Binding Modes in WPF
Data binding means populating some data from one object to another object.The first object which provides data is called the source object.The second object which receives data from the first object is called the target object.Data binding acts as a bridge to pass data from source object to destination object. The source object can be […]
Control template Example in WPF
Every WPF control has two attributes behavior and appearance. Behavior is defined by event and properties while appearance is defined by control template. Controls have default templates applied to them.Templates define the complete hierarchy of controls or visual tree of the control.It is responsible for the complete appearance ,look and feel of the control. In WPF […]
Binding Combobox to a List in WPF
Combobox is used to display a collection of items.In Combobox control only one item is visible at a time.Whichever item is selected is visible ,others are hidden.User can click the combox and select any other item from the list of items. Like the datagrid control,comobox is also a ItemsControl ,as it derives from the ItemsControl base […]
Data binding Datagrid control in WPF with SQL Server table
DataGrid control in WPF control can be used to display collection of items.There are some other controls which are used for dispalying a collection of items. Some other controls which are used for displaying collection of items are: ComboBox ListBox TabControl These controls derive from the base class ItemsControl.ItemsControl defines some common properties and methods […]