WPF stands for Windows Presentation Foundation.It is a framework for developing windows applications using the .NET framework.It is a successor of MFC and Windows forms for the development of windows applications. It provides several advantages over windows forms for developing desktop applications.It has the following features: It uses DirectX for rendering instead of GDI(which was used […]
WPF
DelegateCommand in WPF
In a MVVM application actions in the view trigger the logic in the view model through the use of commands.Command is a class implementing the ICommand interface.ViewModel can implement commands for every action in the view.View can then bind and trigger these commands for different actions on the UI. Though command objects created using ICommnd […]
MVVM common interview questions and answers
What is MVVM? MVVM stands for Model ,View and ViewModel.It is a architectural pattern for creating decoupled applications.In MVVM pattern application is divided into three layers. Model It represents domain entities and business logic View It is the User Interface.It represents the Entities to the end user ViewModel It connects View with the ViewModel What […]
Implementing ICommand in WPF using MVVM
Commands in WPF are used for executing logic in response to different actions.Here we will be Implementing ICommand in WPF using MVVM. Commands are invoked as a result of different actions.There could be different types of actions such as delete,copy and save.In a normal application that does not use commands the logic which gets executed as […]
Binding ComboBox using MVVM in WPF
Binding combo-box to some data means just setting the data context of the combo box to a list of values.In the case ItemsControl such as combo-box the ItemsSource property needs to set to a list or collection of values. Binding ComboBox using MVVM in WPF The source for displaying list of values in the combo-box needs to […]