Tutorials - C#, WPF, ASP.NET MVC, WCF, Entity Framework, AngularJS and MVVM Frameworks - MVVM Light - DotNetPattern.com
1. What is SQL Temporary Table?
A temporary table is a table which developer creates at runtime only for the scope of a query or for the scope of the connection. You can do all CRUD operations on the table.
There are two kinds of temporary tables:
a. Local temporary table
b. Global temporary table
Local temporary table: This table is available only ...
43. What is the function name for getting the current date in SQL Server?
We can use GETDATE() with SELECT statement for getting the current date.
44. Print the name of distinct employee whose date of birth is between 01/01/1950 to 12/31/1970.
SELECT DISTINCT Name FROM Employee WHERE DOB BETWEEN '01/01/1950' AND '12/31/1970'...
MVVM Light toolkit is a lightweight toolkit for MVVM. This toolkit provides very basic classes for developing your application in MVVM architecture.
You can download the latest MVVM Light Toolkit from here.
MVVM Light Toolkit comes with 2 main DLLs.
Main classes in GalaSoft.MvvmLight.dll are:...
MVVM Light Messenger is a class that allows exchange messages between objects. Messenger class is mainly used for sending messages between viewmodels. Messenger class decreases coupling between viewmodels. Every viewmodel can communicate with another viewmodel without any association between them.
Messenger is an implementation of Mediator pattern in MVVM Light tool...
In my previous blog, I have showed you some main classes in MVVM Light Tookit. In this blog, I will show a simple MVVM Light Toolkit example. In this example, we will create a sample application for loading and saving the employees details using MVVM Light Toolkit.
We will do below tasks one by one:
Add a reference of MVVM Light Toolkit into...
C# Interface defines a group of related functionality. An interface defines only the definition of the functionality. All classes and structures which inherit from interface must implement the functionality defined in an interface.
We can not create an instance of interface. In the interface declaration variable, we can only store the instance of the object that impleme...
ListView ItemContainerStyle specifies a style that is used by every generated ListViewItem for styling it.
You can create a Style inline or in the Resources section and set the ItemContainerStyle property of ListView. You can set ItemContainerStyle as StaticResource or DynamicResource.
When to Use?
By default you cannot modify style of ListViewItem in WPF ListView....
ListView control is a very popular control among WPF developers. Developers use ListView control for showing the data in tabular format. Sometimes, we need to hide WPF ListView columns, but wpf does not provide any default implementation for hide WPF ListView columns.
I have developed a WPF Behavior to hide WPF ListView columns through Attach property. An attached&...
Predicate is a pre-built delegate in the .NET framework class library. Delegates are used to store method which has same parameters and return types as specify in the delegate type. Predicate is a generic delegate. It takes one parameter and returns a boolean value.
Predicate delegate is used for check whether a parameter meets specify condition or not.
WPF ListView does not support Filtering by default. ListView does not have their own methods to filter the bounded list.
But WPF has a very special class CollectionViewSource which supports Filtering very effectively and in very easy way.
What is CollectionViewSource class?
CollectionViewSource is a class which we can use in WPF for filtering and sorting a bounded ...