WPF Controls - ListView, GridView, DataGrid, TabControl, Label, MVVM Frameworks - MVVM Light

WPF Interview Questions for Beginners & Advanced - Part 1

1. What is WPF? Windows Presentation Foundation (WPF) is a successor of Windows Forms. WPF is a UI presentation framework for developing Windows based applications. It uses the DirectX technology for rendering their controls on the screen. 2. What are the features of WPF? WPF main features are: WPF is resolution-independent. It uses the hardware accel...

Continue Reading

WPF Interview Questions for Beginners & Advanced - Part 2

21. How can we find resources from ResourceDictionary and apply on controls? ResourceDictionary stored resources as key value pairs and you have a method called FindResource in every control to find the resource from the ResourceDictionary. Every resource is stored as reference type so you have to cast the object to the original type. btn1.Background = (Brush)btn1.Fi...

Continue Reading

WPF Interview Questions for Beginners & Advanced - Part 3

41. What is Markup Extension in WPF? Markup Extension decides at runtime how to set a property value. StaticResource, DynamicResource are examples of Markup Extension. Markup Extension are always comes in curly braces { }. The first word inside the curly braces is class name of Markup Extension. 42. How many types of Markup Extension exists in WPF? There are tot...

Continue Reading

WPF Interview Questions for Beginners & Advanced - Part 4

61. How can you obtain the SynchronizationContext class? You can use the static property SynchronizationContext.Current property from the UI thread. 62. How many methods are available in SynchronizationContext class? There are two methods: Post Send 63. What is the difference between Send and Post methods in SynchronizationContext class? Post method...

Continue Reading

WPF Interview Questions for Beginners & Advanced - Part 5

81. What is Property-based Animation in WPF? WPF introduces a property-based animation techniques to make animations in WPF easy. It simply modify the value of control property over an interval of time and the target property must be a dependency property. 82. How many types of Animation support by WPF? There are baiscally three types of Animation classes. ...

Continue Reading

WPF Label Control - Guide and Examples

Label control is used for showing the text data in the WPF application. It also provides support for Access Keys. <Label /> Content Property Label is directly inherit from ContentControl class which provides the Content property to Label control. In the Content property, you can set the string or host any type of child control. <StackPanel M...

Continue Reading

WPF ListView Binding

WPF Listview is a control that is used for display a list of data items. It inherits directly from ListBox. Listview provides an ItemsSource property for binding list of items. Below is the sample program for binding listview items. <Window x:Class="WpfApplication5.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation&quo...

Continue Reading

WPF ListView - GridView, Bindings, ItemTemplate Examples

WPF ListView comes under 10 most important controls in WPF. ListView represents a control in WPF which display a collection of data items. ListView is capable of showing data items in different views. It comes with its default view GridView which show items in tabular format. WPF ListView contains almost same features as ListBox as it is inherit from ListBox control. ...

Continue Reading

WPF ListView - Hide Column Headers by simple Style

WPF ListView is a very popular tool for showing list of items. Sometimes we need to hide the ListView column headers and only show the list of items. But ListView does not provide any default behavior or property for hiding the column headers. By applying a simple style you can hide the column headers of WPF ListView. <Grid> <ListView x:Name="List...

Continue Reading

WPF ListView ItemTemplate Tutorial

WPF provides various templates for customization of controls. WPF ListView ItemTemplate is in one of these. ItemTemplate of ListView is useful when we have to change the visual presentation of bound data objects. If your WPF ListView control is bound to collection of objects using ItemsSource proeprty and you have not set the ItemTemplate property, then it will call the...

Continue Reading

Join our newsletter and get an occasional email with a technology and DotNetPattern.com news update.