3.26 quest Flashcards

(52 cards)

1
Q

XAML is a language that uses XML syntax and enables controls to be added to a user interface in a declarative, hierarchical way

A

T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

XAML is designed with todays powerful graphics cards in mind

A

T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

XAML controls are added to the user interface in a linear, non-declarative organization.

A

F

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

One of XAML’s shortfalls is its inability to render 3D graphics.

A

F

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

XAML is a language that uses XML syntax and enables controls to be added to a user interface in a declarative, hierarchical way.

A

T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Name two key capabilities of XAML

A

2D and 3D capabilities for advanced rendering & Advanced font processing and rendering

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is at the heart of the development of most graphical Windows applications?

A

Window Designer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

By default, the Visual Studio designer includes two namespaces

A

T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Code-behind files are C# files that are dynamically linked to the XAML files.

A

T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

When creating a new window in Visual Studio, the presentation namespace is always declared as the default and the language namespace as xmlns:x.

A

T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

As a direct result of adding the namespace, every tag that follows (i.e. , , etc.) must be prefixed with the “parent” namespace.

A

??

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the favored tool used by designers when creating GUIs for WPF?

A

Expression Blend

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is code-behind files?

A

C# files that are dynamically linked to the XAML files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

XAML and C# are two programming languages that work well together, in order to create strong desktop programs.

A

T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

WYSIWYG stands for What You Should Ignore While YOLO’ing Grandmas.

A

F

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

The upper section, known as the ______ view displays a What you see is what you get representation

A

Design View

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Out of the box controls look exactly as you would expect a control to look in a standard Windows application

A

T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

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.

A

T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Where does Visual Studio put the code-behind files?

A

the same directory as the XAML fi les

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

All controls have a number of _______ that are used to manipulate the behavior of the control

A

properties

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

A dependency property is a property that is registered with the WPF property system in such a way as to allow extended functionality.

22
Q

Routed events are usually associated with user actions.

23
Q

An attached property is a property that is made available to each child object of an instance of the class that defines the property

24
Q

Routed events are usually associated with non-user actions

25
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
26
An _________ property is that is made available to each child object of an instance of the class that defines the property.
attached
27
What is a property that is registered with the WPF property system in such a way as to allow extended functionality?
Dependency
28
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
29
What is a property that is made available to each child object of an instance of the class that defines the property?
Attached property
30
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.
31
There is only one way to add a hander for an event.
F
32
The MouseDown occurs when a key is released while a control has focus.
F
33
Some common control events include Click, KeyDown, GotFocus, LostFocus, and MouseDoubleClick.
F
34
How many basic ways are there to add a handler for an event?
2
35
How do you add a hander for a particular event?
use the Events list in the Properties window
36
A routed event can travel up and down the hierarchy of the control on which the event occurred.
T
37
Routed commands serve much the same purpose as events in that they cause some code to execute.
T
38
Routed events are different in that they can send the event to all controls in the hierarchy in which the control participates.
T
39
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
40
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.
41
A command is much more complicated to implement than an event.
T
42
What is an example of a type of control that doesn’t allow you to use other controls as their content?
Content
43
All WPF controls derive from ______.
Panel class
44
What abstract class do all content layout controls derive from?
Panel class
45
The canvas control provides complete freedom over control positioning.
T
46
What does Padding refer to?
spaces out the content of a control from its edges.
47
What does Margin refer to?
position controls relative to the edges of a window
48
What is the Visual Studio DockPanel?
Enables you to dock controls to one of its edges.
49
The direction in which controls are stacked on a stack panel is determined by three properties: orientation, horizontal, and vertical.
F
50
You can also define rows and columns in the grid by clicking the edges of the grid in the Design View.
F
51
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
52
Data binding is a way of declaratively connecting controls with data.
T