WPF Interview Questions and Answers (67) - Page 4

What is View Injection In Prim?

A way to add, show, or remove views in a region by adding or removing instances of a view to a region. The code interacting with the region does not have direct knowledge of how the region will handle displaying the view.
What is 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 operating systems support WPF?

1. Windows XP Service Pack 2 or later
2. Windows7
3. Windows Vista
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.
How to have a TextBox use all upper-case (or lower-case) characters?

We can use the CharacterCasing property of the TextBox.
For Example:-
txt_emp_code.CharacterCasing = CharacterCasing.Upper;  

txt_emp_code.CharacterCasing = CharacterCasing.Lower;

Found this useful, bookmark this page to the blog or social networking websites. Page copy protected against web site content infringement by Copyscape

 Interview Questions and Answers Categories