Welcome to your WPF.Net Name Email 1. A ControlTemplate is used 1. To set background colour 2. To create control style 3. To customize the control's appearance beyond what setting the other properties on the control can do 4. All the above are true 2. In which of the following code style is defined correctly? 1. -----<Window.Resources> <Style TargetType="TextBlock"> <Setter Property="HorizontalAlignment" Value="Center" /> <Setter Property="FontFamily" Value="Comic Sans MS"/> <Setter Property="FontSize" Value="14"/> </Style> </Window.Resources> 2. ------<Window.Resources> <Style TargetType="TextBlock"> <Setter Property="Horizontal Alignment" Value="Center" /> <Setter Property="FontFamily" Value="ComicSansMS"/> <Setter Property="FontSize" Value="14"/> </Style></Window.Resources> 3. ----<Window.Resources> <Style TargetType="Text Box"> <Setter Property="HorizontalAlignment" Value="Center" /> <Setter Property="FontFamily" Value="Comic Sans MS"/> <Setter Property="FontSize" Value="14"/> </Style></Window.Resources> None of the above 3. Object element syntax is used when Property value is of a non-string type Property value is of a non-string type for which no type conversion exists Property value is 'String' Property value is of Time-Stamp 4. Which is correct way 'to specify a binding' in XAML? Using 'MultiBinding' Using 'PriorityBinding' By setting properties directly on a Binding object in code None of the above 5. Which of the following specifies correct type of dialog boxes? Display specific information to users. Gather information from users. Display specific information to users. Gather information from users. Both display and gather information. Display an operating system prompt, such as print window. Display specific information to users. Display an operating system prompt, such as print window. Select a file or folder. Display specific information to users. Gather information from users. Both display and gather information. Display an operating system prompt, such as print window. Select a file or folder. 6. 'System.Windows.Controls.PrintDialog' control in WPF is same as System.Windows.Forms.PrintDialog component of Windows Forms. Yes No 7. Select the correct way by which ListBox control is bound to a list of photos in XAML 1. <ListBox ItemsSource="{Binding Source={StaticResource MyPhotos}}" Background="Black" Width="600" Margin="10" SelectedIndex="0"/> 2. <ListBox ItemsSource="{Binding Source={StaticResource MyPhotos}" Background="Black" Width="600" Margin="10" SelectedIndex="0"/> 3. <ListBox ItemsSource="{Binding Source={StaticResource MyPhotos}}" Background="Black";Width="600"; Margin="10"; SelectedIndex="0"/> 4. None of the above 8. Which is best way to display collection data that contains other collections e.g. Menu Using HeaderedItemsControl Using HierarchicalDataControl Using HierarchicalDataTemplate None of the above 9. What is a property trigger A Trigger that sets property values called a property trigger. A Trigger that sets property values or starts actions based on the value of a property is called a property trigger. A Trigger that starts actions based on the value of a property is called a property trigger. All of the above 10. Following are the built-in WPF controls TextBox, RichTextBox, and PasswordBox. Window, and WrapPanel. InkCanvas DocumentViewer, FlowDocumentPageViewer, MediaElement, and SoundPlayerAction. ContextMenu, Menu, and ToolBar. All of the above Time is Up! Time's up