• +91 9723535972
  • info@interviewmaterial.com

WPF Interview Questions and Answers

Related Subjects

WPF Interview Questions and Answers

Question - 41 : - How is MVVM different from MVC?

Answer - 41 : -

MVC stands for Model-View Controller and.MVVM stands for Model-View ViewModel.

In MVVM, View Model is used instead of a controller. This View Model is present beneath the UI layer. It reveals the command objects and data that the view requires. It acts like a container object from which view gets its actions and data.

Question - 42 : - Explain Routed events in WPF.

Answer - 42 : -

An event, which can invoke handlers on more than one listeners present in an element tree, instead of the single object which called the event, is known as a Routed event.

Question - 43 : - Which namespace is required for working with 3D?

Answer - 43 : -

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

Question - 44 : - Can we say that WPF is the replacement of DirectX?

Answer - 44 : -

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.

Question - 45 : - What are the dependency properties?

Answer - 45 : -

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

Question - 46 : - What is CLR?

Answer - 46 : -

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

Question - 47 : - What are the freezable objects in WPF?

Answer - 47 : -

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.

Question - 48 : - What is value converter in WPF?

Answer - 48 : -

A value converter acts as a bridge between a target and a source and it is necessary when a target is bound with one source, for instance you have a text box and a button control. You want to enable or disable the button control when the text of the text box is filled or null. In this case you need to convert the string data to Boolean. This is possible using a Value Converter. To implement Value Converters, there is the requirement to inherit from I Value Converter in the System.Windows.Data namespace and implement the two methods Convert and Convert Back.

Question - 49 : - What is the difference between Silverlight and WPF browser application?

Answer - 49 : -

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.

Question - 50 : - What are the different types of layout controls?

Answer - 50 : -

Following are the different types of layout controls:

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


NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners