Top 40+ WPF Interview Questions and Answers Pdf 2020-2021 - 2

Question: 6

What is the difference fixed and flow documents?

Fixed documents – Refers to the documents whose content is static or fixed. In other words, the fixed documents are typeset or ready to print documents. The layout of the entire content of static documents remains fix, irrespective of the screen or print device used. The document is printed as it is shown on the screen. Therefore, these are suitable for desktop publishing and word processing applications. It is an object of the Fixed Document class.

Flow documents – Refers to the documents that allow flexible and dynamic arrangement of the content; therefore, the document is optimized to view and read the content. It adjusts itself according to the window size, display resolution, or print resolution. There are many options for page viewing, such as single-page, two page, and continuous scrolling viewing modes. Flow documents also contain a zoom control that facilitates zooming in or out of the document content. It is an object of the Flow Document class.

Question: 7

Write the name of the control that allows you to work with fixed and flow documents?

The Document Viewer control allows working with the fixed documents in WPF. Any of the following controls can be used for a flow document:

The Flow Document Scroll Viewer control

The Flow Document Reader control

The Flow Document Page Viewer control

The Rich Text Box control

Question: 8

What is the main advantage of using Windows Presentation Foundation (WPF) over Windows Forms?

In .NET Framework 4.0, WPF enables a developer to develop graphic rich desktop and browser hosted applications.

The main advantage of WPF, previously known as Avalon, is that it provides built in support for different media such as images, text, audio, video, 2-D and 3-D graphics, and different documents.

WPF does not require any additional Application Programming Interface (API) while Windows Forms applications require various APIs, such as GDI+, Windows Media Player, and DirectX, to work with graphics, multimedia and documents. With the introduction of WPF, it has become easy and simple to develop graphic rich desktop applications.

Question: 9

What is an attached property?

Attached properties are dependency properties of an element that can access and set on any of the child elements of the element.

If an element has an attached property, then the attached property is accessible to all the child elements of that element.

Most attached properties pertain the appearance or layout of the elements.

Question: 10

Define the Deep Zoom technology in Silver light?

The Deep Zoom technology in Silver light 4.0 facilitates the zooming in and out of high-resolution images.

The Deep Zoom technology provides developers so many functionalities to make a creative and uniquely interactive web application.

It allows users to zoom in or out of multiple photographs. The photographs provide a highly detailed and fine view.

Related Questions