Chapter 15 Flashcards

1
Q

Can we write procedural code inside XAML file

A

Yes
e.g.
<code></code>

</code>

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

What is CDATA in XAML code

A

It tells that the code inside CDATA will not follow normal XAML rules.

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

How we can save XAML save

A

XAML writer

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

Can we create objects through non default constructors

A

Yes

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

What x:AsyncRecords do

A

Controls the size of asynchronous XAML-loading chunks

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

What x:Class do

A

Creates Class

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

What x:ClassModifier do

A

Set the visibility of class, which is by default private.

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

What x:ConnectionId do

A

It is not for public use. It is for internal implementation.

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

What x:FieldModifier do

A

It checks field visibility.

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

What x:Key do

A

It add elements in dictionary.

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

What x:name do

A

It uses for naming elements.

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

What x:shared = false do

A

It means same resource instance not to be shared

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

What x:SubClass do

A

It uses only when partial class is not supported. It works like partial class do

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

What x:Synchoronous mode do

A

It load xaml in sync mode

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

What x:TypeArguments do

A

Use only with root with x:Class

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

What x:Uid do

A

Represents system URI. It used for internationalization and localization

17
Q

What x:XData do

A

It uses on such data on which XML rules does not apply

18
Q

What x:array do

A

It defines type of array

19
Q

What x:NULL do

A

it is mark up extension that returns NULL

20
Q

What x:reference do

A

It gets reference of named element

21
Q

What x:static do

A

It set static property of any field

22
Q

What x:Type do

A

It is just like type of operator

23
Q

Is it true whatever we do in XAML can also be done in C#

24
Q

What is WPF

A

Windows Presentation Foundation (WPF) is a next-generation presentation system for building Windows client applications with visually stunning user experiences.

25
What is dispatcher object
It supports such object which have message loop or event loop. It assumes that it will run on single thread.
26
What is dependency object
Any object which want to have dependency property must be derived from dependency object. It is because dependency object supports dependency property.
27
What freezable class do
It takes object in a state where object property cannot be changed. And due to this, It is thread save. It can be used in threads.
28
What is visual class
It is directly derived from dependency object. It supports screen rendering.
29
What is contentelement class
It is derived from dependency object. It is just like UI elements but for document related elements.
30
What is framework element class
It is for support for UIelements e.g. styles, data binding
31
What is FrameworkContentElement class
It is just like framework element but for non UI element
32
What is control class
It is for restyling
33
What is logical tree
A logical tree built on hierarchy of XAML elements. It is called logical because it misses many visual elements.
34
What is visual tree
Its a mapping of hierarchy of XAML elements in a tree form. All elements are visually present in it.
35
Should our code depend upon visual tree
No
36
How can we print logical and visual tree
Through logical tree helper class and visual tree helper class