• +91 9723535972
  • info@interviewmaterial.com

WPF Interview Questions and Answers

Related Subjects

WPF Interview Questions and Answers

Question - 91 : - Which NameSpace has ‘Popup’ and ‘Thumb’ controls?

Answer - 91 : -

The namespace system.windows.controls.primitives has ‘Popup’ and ‘Thumb’ controls.

Question - 92 : - Explain what is XAML?  What is the difference between XML and XAML?

Answer - 92 : -

XAML stands for eXtensible Application Markup Language. It is the language used to instantiate.NET objects.  It is the language developed by Microsoft to write user interface for next generation applications.

XML is designed to store data or to work with the stored data, whereas XAML is the extended version of XML used for.NET programming.

Question - 93 : - Mention the advantage of using XAML?

Answer - 93 : -

The advantage of using XAML is

  • XAML code is clear to read, and they are short
  • Separation of designer code and logic
  • Tools like expression blend used for graphical design require XAML as source
  • It clearly separates the roles of designer and developer

Question - 94 : - How can you code to display “Hello World” in XAML?

Answer - 94 : -

Displaying “Hello World.”



Hello, World!



Question - 95 : - In XAML how graphic components are specified?

Answer - 95 : -

In XAML, graphic components are specified with by open or closed tags with attributes.

For example,

  • Tag with contents

Click


  • Tag without contents
< Button/>

Question - 96 : - What is Attribute Syntax in XAML?

Answer - 96 : -

In XAML, attribute syntax sets a value for a property or names the event handler for an event, by declaring an attribute on an element.  The attribute value should be enclosed within two quotation marks (“).

For example,

< Button Background = “Black” Foreground “Red” Content = “This is an operating button”/>

Question - 97 : - Explain Content Properties XAML?

Answer - 97 : -

XAML represents a language feature whereby a class can allot exactly one of its properties as XAML property

Question - 98 : - Explain what is Markup extension in XAML?

Answer - 98 : -

Markup extensions are placeholders in XAML that are used to resolve property at runtime. A markup extension allows you to extend XAML and using attribute syntax you can also set any property that can be set in XAML.The purpose of the mark up extension is to process a string and return an object. Some of the standard markup extensions are xNull, x: Array, :StaticResource  and DynamicResource.

Question - 99 : - What are the four general kinds of XAML elements?

Answer - 99 : -

The four general kind of XAML elements are

  • Root Elements
  • Panel Elements
  • Control Elements
  • Geometric Elements

Question - 100 : - What X: prefix indicates in XAML?

Answer - 100 : -

The X: prefix is used to map the XAML namespace in templates.


NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners