Deck 25: GUI With Windows Presentation Foundation

ملء الشاشة (f)
exit full mode
سؤال
WPF graphics are resolution-independent,meaning that they're designed to look similar on screens of different sizes.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
A XAML document's root element is a ______

A) Window
B) Form
C) Grid
D) UserControl
سؤال
WPF GUIs can be created by dragging predefined controls from the Toolbox onto the design surface.
سؤال
XAML is similar toNET,a language that allows Internet apps to share data.
سؤال
_________ allows you to describe a WPF GUI without generating any C# code statements.

A) XML
B) Silverlight
C) XAML
D) vector graphics
سؤال
Every XAML document must define the presentation XAML namespace and the standard XAML namespace.
سؤال
XML elements can be nested,creating parent elements and child elements.
سؤال
XAML is used to define the app's ________.

A) program logic
B) graphical user interface
C) code behind classes
D) All of the above.
سؤال
XAML is used to describe the ___________ of a WPF app.

A) classes
B) program logic
C) code-behind file
D) GUI
سؤال
Using XAML gives WPF the benefit of raster-based graphics.
سؤال
The app's primary code-behind class has filename _______.

A) Application.xaml
B) Application.xaml.cs
C) Window1.xaml
D) Window1.xaml.cs
سؤال
A StackPanel has a vertical or horizontal flow,set by its _____ attribute.

A) Order
B) Orientation
C) FlowType
D) Direction
سؤال
WPF uses _________ graphics,which allows graphics to scale without losing quality.

A) bitmap
B) vector
C) raster-based
D) jpeg
سؤال
A content control can have text or several child elements.
سؤال
A key benefit of WPF is that it provides a single platform to handle GUI,images,animation 2D and 3D graphics,audio and video.
سؤال
A Grid is a type of layout container.
سؤال
The StartupUri attribute defines which XAML document loads first.
سؤال
A XAML document has exactly one ______

A) root element
B) start tag
C) end tag
D) child element
سؤال
XAML is a specialized vocabulary of ___________.

A) HTML
B) XML
C) ASP.NET
D) WPF
سؤال
One problem with using XAML is that GUI design is slightly integrated with programming.
سؤال
Layout of controls refers to the controls' _____.

A) size
B) event handlers
C) position
D) a and b
E) a and c
سؤال
The ________ property determines the amount of space around a control's edges.

A) Padding
B) Margin
C) Space
D) Edges
سؤال
The _______ property of an event stores a reference to the control that triggered the event.

A) Target
B) Source
C) SourceControl
D) EventTarget
سؤال
A WPF Grid control allows child elements to be positioned using explicit coordinates.
سؤال
Flow-based layouts allow the GUI to display correctly when the user resizes the window.
سؤال
How does the size setting Auto size the control

A) It uses the maximum possible size to fill the area
B) It uses a relative size
C) It uses the smallest possible size to fit its contents
D) a and b
سؤال
Use the ____________ method to programmatically close an app.

A) Application.Shutdown
B) Application.Exit
C) Application.Current.Exit
D) Application.Current.Shutdown
سؤال
A MouseMove event passes information using a MouseMoveEventArgs object.
سؤال
A layout container's ______ property stores a list of its child elements.

A) Children
B) ElementList
C) FlowItems
D) List
سؤال
A MouseLeftButtonDown event passes information using a MouseButtonEventArgs object.
سؤال
If a command is disabled,all methods of executing that command are disabled.
سؤال
A bubbling event travels down the container hierarchy,and a tunneling event travels up the container hierarchy.
سؤال
A MouseEventArgs object's GetPosition event always returns a position relative to the top left of the WPF window.
سؤال
A routed event is ignored after its Handled property is set to True.
سؤال
A shape can be given an absolute position in a Canvas using the Canvas's methods ________ and________.

A) SetX, SetY
B) SetLeft, SetTop
C) PositionX, PositionY
D) PadLeft, PadTop
سؤال
Events which can travel up or down the container hierarchy are called ______.

A) expandable events
B) sourced events
C) bubble events
D) routed events
سؤال
The CanExecute event for a command allows programmers to implement logic that determines whether a command should be enabled or disabled.
سؤال
WPF events which behave like Windows Forms events are called ______.

A) expandable events
B) tunneling events
C) bubbling events
D) direct events
سؤال
WPF provides the ability to create ____________,actions or tasks that may be triggered by many different user interactions.

A) multi-events
B) shared events
C) commands
D) b or c
سؤال
It's a good practice to use ranges for the size and relative location for the position of WPF controls.
سؤال
Static resources and dynamic resources differ because static resources are set at initialization time and dynamic resources can be modified by the app.
سؤال
The ItemsSource property of a ListView must refer to the name of a DataTemplate element.
سؤال
A WPF style is a set of that can be reused for any number of controls.

A) property-value definitions
B) event-handler definitions
C) background images
D) a and b.
سؤال
Keyword ________ is used for constants whose values cannot be determined at compile time.

A) const
B) readonly
C) static
D) None of the above.
سؤال
Resources are similar to private members.They're accessible only to the controls they're defined in.
سؤال
Use the ________ property to bind data to information in another XAML element,and the ________ property to bind to a specific property of that element.

A) Binding, Source
B) Target, Property
C) ElementName, Path
D) Target, Source
سؤال
Dependency properties provide built-in change notification.
سؤال
WPF styles require you to explicitly set the individual properties of each control.
سؤال
Data members declared as readonly must be initialized in their declaration.
سؤال
A routed command declared in the XAML changes a control's appearance when that control enters a certain state.
سؤال
WPF controls are 'lookless,' meaning that their appearance can be set by any control template.
سؤال
Colors are represented by three color values and the alpha value,specifying

A) brightness
B) opacity
C) a blending constant
D) None of the above.
سؤال
A CollectionViewSource provides multiple "views" of the same data.
سؤال
In addition to GUI appearance,styles can also contain event handlers.
سؤال
A control's Background property is a customizable ________ object.

A) Color
B) BackColor
C) GUIcolor
D) None of the above
سؤال
Which of the following is not a data provider for WPF data binding

A) ObjectDataProvider
B) SqlDataProvider
C) XmlDataProvider
D) None of the above.
سؤال
Setting the property to None removes the standard window frame containing the title and buttons to minimize,maximize and close the app.

A) Frame
B) Title
C) WindowStyle
D) WindowFrame
سؤال
WPF provides built-in functionality--such as minimizing,maximizing and closing the window--for custom windows.
سؤال
Custom control templates allow you to completely customize a control's appearance.
سؤال
The attribute declares the control modified by a control template.

A) Type
B) TargetType
C) TargetControl
D) Control
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/60
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 25: GUI With Windows Presentation Foundation
1
WPF graphics are resolution-independent,meaning that they're designed to look similar on screens of different sizes.
True
2
A XAML document's root element is a ______

A) Window
B) Form
C) Grid
D) UserControl
A
Window.
3
WPF GUIs can be created by dragging predefined controls from the Toolbox onto the design surface.
True
4
XAML is similar toNET,a language that allows Internet apps to share data.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
5
_________ allows you to describe a WPF GUI without generating any C# code statements.

A) XML
B) Silverlight
C) XAML
D) vector graphics
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
6
Every XAML document must define the presentation XAML namespace and the standard XAML namespace.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
7
XML elements can be nested,creating parent elements and child elements.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
8
XAML is used to define the app's ________.

A) program logic
B) graphical user interface
C) code behind classes
D) All of the above.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
9
XAML is used to describe the ___________ of a WPF app.

A) classes
B) program logic
C) code-behind file
D) GUI
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
10
Using XAML gives WPF the benefit of raster-based graphics.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
11
The app's primary code-behind class has filename _______.

A) Application.xaml
B) Application.xaml.cs
C) Window1.xaml
D) Window1.xaml.cs
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
12
A StackPanel has a vertical or horizontal flow,set by its _____ attribute.

A) Order
B) Orientation
C) FlowType
D) Direction
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
13
WPF uses _________ graphics,which allows graphics to scale without losing quality.

A) bitmap
B) vector
C) raster-based
D) jpeg
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
14
A content control can have text or several child elements.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
15
A key benefit of WPF is that it provides a single platform to handle GUI,images,animation 2D and 3D graphics,audio and video.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
16
A Grid is a type of layout container.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
17
The StartupUri attribute defines which XAML document loads first.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
18
A XAML document has exactly one ______

A) root element
B) start tag
C) end tag
D) child element
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
19
XAML is a specialized vocabulary of ___________.

A) HTML
B) XML
C) ASP.NET
D) WPF
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
20
One problem with using XAML is that GUI design is slightly integrated with programming.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
21
Layout of controls refers to the controls' _____.

A) size
B) event handlers
C) position
D) a and b
E) a and c
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
22
The ________ property determines the amount of space around a control's edges.

A) Padding
B) Margin
C) Space
D) Edges
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
23
The _______ property of an event stores a reference to the control that triggered the event.

A) Target
B) Source
C) SourceControl
D) EventTarget
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
24
A WPF Grid control allows child elements to be positioned using explicit coordinates.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
25
Flow-based layouts allow the GUI to display correctly when the user resizes the window.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
26
How does the size setting Auto size the control

A) It uses the maximum possible size to fill the area
B) It uses a relative size
C) It uses the smallest possible size to fit its contents
D) a and b
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
27
Use the ____________ method to programmatically close an app.

A) Application.Shutdown
B) Application.Exit
C) Application.Current.Exit
D) Application.Current.Shutdown
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
28
A MouseMove event passes information using a MouseMoveEventArgs object.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
29
A layout container's ______ property stores a list of its child elements.

A) Children
B) ElementList
C) FlowItems
D) List
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
30
A MouseLeftButtonDown event passes information using a MouseButtonEventArgs object.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
31
If a command is disabled,all methods of executing that command are disabled.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
32
A bubbling event travels down the container hierarchy,and a tunneling event travels up the container hierarchy.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
33
A MouseEventArgs object's GetPosition event always returns a position relative to the top left of the WPF window.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
34
A routed event is ignored after its Handled property is set to True.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
35
A shape can be given an absolute position in a Canvas using the Canvas's methods ________ and________.

A) SetX, SetY
B) SetLeft, SetTop
C) PositionX, PositionY
D) PadLeft, PadTop
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
36
Events which can travel up or down the container hierarchy are called ______.

A) expandable events
B) sourced events
C) bubble events
D) routed events
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
37
The CanExecute event for a command allows programmers to implement logic that determines whether a command should be enabled or disabled.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
38
WPF events which behave like Windows Forms events are called ______.

A) expandable events
B) tunneling events
C) bubbling events
D) direct events
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
39
WPF provides the ability to create ____________,actions or tasks that may be triggered by many different user interactions.

A) multi-events
B) shared events
C) commands
D) b or c
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
40
It's a good practice to use ranges for the size and relative location for the position of WPF controls.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
41
Static resources and dynamic resources differ because static resources are set at initialization time and dynamic resources can be modified by the app.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
42
The ItemsSource property of a ListView must refer to the name of a DataTemplate element.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
43
A WPF style is a set of that can be reused for any number of controls.

A) property-value definitions
B) event-handler definitions
C) background images
D) a and b.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
44
Keyword ________ is used for constants whose values cannot be determined at compile time.

A) const
B) readonly
C) static
D) None of the above.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
45
Resources are similar to private members.They're accessible only to the controls they're defined in.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
46
Use the ________ property to bind data to information in another XAML element,and the ________ property to bind to a specific property of that element.

A) Binding, Source
B) Target, Property
C) ElementName, Path
D) Target, Source
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
47
Dependency properties provide built-in change notification.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
48
WPF styles require you to explicitly set the individual properties of each control.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
49
Data members declared as readonly must be initialized in their declaration.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
50
A routed command declared in the XAML changes a control's appearance when that control enters a certain state.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
51
WPF controls are 'lookless,' meaning that their appearance can be set by any control template.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
52
Colors are represented by three color values and the alpha value,specifying

A) brightness
B) opacity
C) a blending constant
D) None of the above.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
53
A CollectionViewSource provides multiple "views" of the same data.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
54
In addition to GUI appearance,styles can also contain event handlers.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
55
A control's Background property is a customizable ________ object.

A) Color
B) BackColor
C) GUIcolor
D) None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
56
Which of the following is not a data provider for WPF data binding

A) ObjectDataProvider
B) SqlDataProvider
C) XmlDataProvider
D) None of the above.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
57
Setting the property to None removes the standard window frame containing the title and buttons to minimize,maximize and close the app.

A) Frame
B) Title
C) WindowStyle
D) WindowFrame
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
58
WPF provides built-in functionality--such as minimizing,maximizing and closing the window--for custom windows.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
59
Custom control templates allow you to completely customize a control's appearance.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
60
The attribute declares the control modified by a control template.

A) Type
B) TargetType
C) TargetControl
D) Control
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.