Cheap VPS & Xen Server


Residential Proxy Network - Hourly & Monthly Packages

WPF Interview Questions


There is given frequently asked WPF interview questions and answers that has been asked in many companies. Let’s see the list of top WPF interview questions.


1) What is WPF?

WPF stands for Window Presentation Framework. It is the latest presentation API by Microsoft Windows. WPF is a 2D and 3D graphics engine.


2) What are the capabilities of WPF?

WPF has following capabilities:

  • It has all the equivalent common user controls like buttons, checkboxes, sliders etc.
  • It has all the capabilities of HTML and Flash.
  • It supports fix and flow format document.
  • It provides the facility of data binding, animation and multimedia.

3) What is XAML?

XAML is a declarative XML based language. It facilitates you to define objects and properties in XML. Its documents are loaded by XAML parser.


4) What is the use of XAML?

XAML is used to describe the objects, properties and their relation in between them. It makes you able to create any type of objects i.e. graphical and non-graphical.


5) What is a routed event?

There are many types of elements in a typical WPF application and these elements are set in an element tree relationship. A routed event is a type of event that is used to invoke handlers on multiple listeners in an element tree.


6) How many types of documents are supported by WPF?

Two types of documents are supported by WPF.

Flow format document: Flow format document is used to alter the content to fit on the screen size.

Fixed format document: Fixed format document present content irrespective of the screen size.


7) Which namespace is required for working with 3D?

System.Windows.Media.Medi3D is the namespace required for working with 3D.


8) Can we say that WPF is the replacement of DirectX?

No, WPF cannot replace DirectX, because WPF is not enough efficient to create games with stunning graphics. WPF is only meant to be a replacement of windows forms, not DirectX.


9) What are the dependency properties?

Dependency properties are the type of properties which belong to a specific class but can be used for another class.


10) What is CLR?

CLR stands for Common Language Runtime. It is a run time environment for .NET


11) What are the freezable objects in WPF?

: An object which is unchangeable is known as freezable object. The freezable objects perform better and also safer if they are required to be shared between threads.


12) What is the difference between Silverlight and WPF browser application?

These are the main differences between the Silverlight and WPF browser application:

  • .NET framework is needed for running WPF browser application on the client machine while Silverlight runs using only plug-in.
  • The applications made in WPF depend on the operating system because .NET framework only runs on Windows. On the other hand, Silverlight plug-ins can be installed on those OS also, which are not Windows.

13) Which tool is required to sketch a mock of your WPF application?

The SketchFlow tool is used to sketch a mock of WPF application.


14) What are the different types of layout controls?

Following are the different types of layout controls:

  • Grid
  • DockPanel
  • WrapPanel
  • Canvas
  • UniformGrid
  • StackPanel

15) What is PRISM?

PRISM is a framework that is used for creating complex applications for WPF, Silverlight or Window phones. It uses MVVM, IC, Command Pattern, DI and separation of concerns to get loose coupling.


16) What is CustomControl?

CustomControl is used to expand the functions of existing controls. It contains a default style in theme and code file.


17) What is the use of custom control?

Custom control is the best way to make a control library. It can also be styled or template.


18) What is the Path animation in WPF?

Path animation is a different type of animation. In this animation, the animated objects follow a path set by the path geometry.


19) What is the meaning of BAML in WPF?

BAML stands for Binary Application Markup Language. It is a type of XAML that has been tokenized, parsed, and changed into binary form.


20) What is the difference between XAML and BAML?

The only difference between XAML and BAML is that BAML is a compressed declarative language which is loaded and parsed quicker than XAML.


21) What is the difference between Page control and Window Control in WPF?

No. Page controls Window controls
1. Page controls preside over the hosted browsers applications. Window controls preside over windows application.
2. Page controls cannot contain window control. Window controls may contain page control.

22) What is the parent class of control class of WPF?

The control class of WPF is derived from FrameworkElement.


23) What is the difference between DynamicResource and StaticResource?

StaticResource DynamicResource
StaticResources evaluate the resource one time only. DynamicResource evaluates the resources every time they are required.
StaticResource is light. DynamicResource is heavy due to frequently evaluated.

24) Is MDI supported in WPF?

MDI is not supported in WPF. The same functionality of MDI can be given by UserControl.


25) What is serialization?

Serialization is a process of converting the state of an object to stream of bytes.

Comments

comments