3.26 quest Flashcards
XAML is a language that uses XML syntax and enables controls to be added to a user interface in a declarative, hierarchical way
T
XAML is designed with todays powerful graphics cards in mind
T
XAML controls are added to the user interface in a linear, non-declarative organization.
F
One of XAML’s shortfalls is its inability to render 3D graphics.
F
XAML is a language that uses XML syntax and enables controls to be added to a user interface in a declarative, hierarchical way.
T
Name two key capabilities of XAML
2D and 3D capabilities for advanced rendering & Advanced font processing and rendering
What is at the heart of the development of most graphical Windows applications?
Window Designer
By default, the Visual Studio designer includes two namespaces
T
Code-behind files are C# files that are dynamically linked to the XAML files.
T
When creating a new window in Visual Studio, the presentation namespace is always declared as the default and the language namespace as xmlns:x.
T
As a direct result of adding the namespace, every tag that follows (i.e. , , etc.) must be prefixed with the “parent” namespace.
??
What is the favored tool used by designers when creating GUIs for WPF?
Expression Blend
What is code-behind files?
C# files that are dynamically linked to the XAML files
XAML and C# are two programming languages that work well together, in order to create strong desktop programs.
T
WYSIWYG stands for What You Should Ignore While YOLO’ing Grandmas.
F
The upper section, known as the ______ view displays a What you see is what you get representation
Design View
Out of the box controls look exactly as you would expect a control to look in a standard Windows application
T
Many of the properties of WPF do more than just get and set a value; for one, they are able to notify observers of changes.
T
Where does Visual Studio put the code-behind files?
the same directory as the XAML fi les
All controls have a number of _______ that are used to manipulate the behavior of the control
properties
A dependency property is a property that is registered with the WPF property system in such a way as to allow extended functionality.
T
Routed events are usually associated with user actions.
T
An attached property is a property that is made available to each child object of an instance of the class that defines the property
T
Routed events are usually associated with non-user actions
F
What is coercion?
You can confi gure sets of related properties so that they all update in response to a change to one of them
An _________ property is that is made available to each child object of an instance of the class that defines the property.
attached
What is a property that is registered with the WPF property system in such a way as to allow extended functionality?
Dependency
You can configure sets of related properties so that they all update in response to a change to one of them. What is this called?
Coercion
What is a property that is made available to each child object of an instance of the class that defines the property?
Attached property
What is an attached property?
a property that is made available to each child object of an instance of the class that defines the property.
There is only one way to add a hander for an event.
F
The MouseDown occurs when a key is released while a control has focus.
F
Some common control events include Click, KeyDown, GotFocus, LostFocus, and MouseDoubleClick.
F
How many basic ways are there to add a handler for an event?
2
How do you add a hander for a particular event?
use the Events list in the Properties window
A routed event can travel up and down the hierarchy of the control on which the event occurred.
T
Routed commands serve much the same purpose as events in that they cause some code to execute.
T
Routed events are different in that they can send the event to all controls in the hierarchy in which the control participates.
T
A routed command is much like an event except it allows code that will be executed to respond to actions that happen in many locations.
T
What is a routed event?
Routed events are different in that they can send the event to all controls in the hierarchy in which the control participates.
A command is much more complicated to implement than an event.
T
What is an example of a type of control that doesn’t allow you to use other controls as their content?
Content
All WPF controls derive from ______.
Panel class
What abstract class do all content layout controls derive from?
Panel class
The canvas control provides complete freedom over control positioning.
T
What does Padding refer to?
spaces out the content of a control from its edges.
What does Margin refer to?
position controls relative to the edges of a window
What is the Visual Studio DockPanel?
Enables you to dock controls to one of its edges.
The direction in which controls are stacked on a stack panel is determined by three properties: orientation, horizontal, and vertical.
F
You can also define rows and columns in the grid by clicking the edges of the grid in the Design View.
F
If you decide that you want to display text using a textbox, be sure to set its IsEnabled property to true to prevent users from being able to edit it.
F
Data binding is a way of declaratively connecting controls with data.
T