Friday 11 November 2011

WPF Interview Questions And Answers

Here, some common WPF interview questions which asked by the interviewer. 

Explain WPF?

Windows Presentation Foundation (WPF) is UI framework, used to create rich user experience application. It introduced in .NET 3.0. WPF supports 2D graphics, 3D graphics, animations, documents and multimedia. 

What do you mean by dependency properties in WPF?
Dependency properties are properties of one class and used by another class.
Let’s understand by an example:
<Ellipse Height=”70” Width=”70” Canvas.Right=”20” Canvas.Top=”30” />
Here ‘Canvas.Right’ and ‘Canvas.Top’ are dependency properties as it used by Ellipse to specify position within Canvas though it’s not properties of Ellipse.
Which namespace is using for animations and 3D graphics in WPF?

System.Windows.Media  namespace is using.

Which operating systems support WPF?
  •  Windows XP Service Pack 2 or later
  •  Windows7
  •  Windows Vista
How many layouts supported in WPF?
  •  Grid
  •  Stack Panel
  •  Dock Panel
  •  Wrap Panel
  •  Canvas Panel
Which type of documents supported by WPF?
WPF supports two types of documents, ‘Fixed Format Documents’ and ‘Flow Format Documents’.  Fixed format document is like PDF. It displays contents regardless of screen resolution and size.  Flow format document adjust content with respect to screen resolution and size.
What are advantages of WPF over Windows applications?
WPF has following capabilities:
  1. Supports 2D and 3D vector graphics.
  2. Animation
  3. Multimedia
  4. Fixed and Flow format documents
  5. Having all capabilities of Html and Flash.
  6. UI separates from code.




No comments:

Post a Comment