WPF INTERVIEW QUESTION & ANSWERS
DOT Net
TAGS
6. | What is XAML? |
---|---|
XAML (pronounced as Zammel) is a declarative XML-based language by which you can define object and properties in XML. XAML document is loaded by a XAML parser. XAML parser instantiates objects and set there properties. XAML describes objects, properties and there relation in between them. Using XAML, you can create any kind of objects that means graphical or non-graphical. |
7. | What is the benefit of using a markup language for designing a user interface? |
---|---|
Using a markup language such as XAML, or even HTML, is beneficial because it provides a common medium for both designers and developers. Additionally, the markup language allows for a declarative approach for building applications, which is often easier to construct and maintain. |
8. | What are the types of binding modes? |
---|---|
|
Posted by Chandra. (Oct 03, 2013) | |
1) One-Time 2) One-way 3) Two-Way. |
|
Posted by Bhavan. (Jun 10, 2013) | |
1) One-Way 2) Two-Way 3) One-way to Source 4) One Time Binding. |
9. | What is the difference between a XAML file and a code-behind file? |
---|---|
The XAML file contains the XAML markup, whereas the code-behind file is associated with a XAML file and contains code (such as C# or VB). |
10. | Which files are automatically added to a new WPF Application project? |
---|---|
App.xaml and Window1.xaml, along with their associated code-behind files. The former represents the application as a whole, whereas the latter represents the primary window of the application. |
Posted by Sukumar. (Oct 17, 2013) | |
App.xaml ,App.xaml.cs, MainWindow.xaml, MainWindow.xaml.cs. |