All quizzes
Free quiz · 20 questions in the bank

XAML quiz

Test your XAML knowledge with a free interactive quiz — 20 questions with answers and explanations. No signup needed to play.

Question 1/12Score 0

What is a `DataTemplate` used for in XAML, particularly with a list-displaying control like a `ListBox` or `ItemsControl`?

In this round
  1. What is a `DataTemplate` used for in XAML, particularly with a list-displaying control like a `ListBox` or `ItemsControl`?
  2. What is the purpose of `INotifyPropertyChanged` in relation to XAML data binding?
  3. What is the purpose of `x:Class` in the root element of a XAML file, e.g. `<Window x:Class="MyApp.MainWindow" ...>`?
  4. What is the purpose of attached properties in XAML, e.g. `Grid.Row="1"` set on a child element inside a `Grid`?
  5. Why is separating XAML markup from C# code-behind logic generally considered good practice, particularly in the MVVM pattern?
  6. What is a "converter" (implementing `IValueConverter`) used for in the context of a XAML data binding?
  7. What is a "markup extension" in XAML (indicated by curly brace syntax, e.g. `{Binding PropertyName}`)?
  8. What is a XAML "element tree" (or "visual tree"), and how does nesting XML elements relate to it?
  9. What does "data binding" mean in the context of XAML, e.g. `<TextBlock Text="{Binding UserName}" />`?
  10. What is the relationship between a XAML file and its "code-behind" file in a typical WPF or .NET MAUI project?
  11. What is the difference between `{StaticResource ResourceKey}` and `{DynamicResource ResourceKey}` in XAML?
  12. What is XAML?
Gaps to close?
Read the curated XAML notes — core concepts, patterns, interview prep.
XAML notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web