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#

A

Yes

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
Q

What is dispatcher object

A

It supports such object which have message loop or event loop. It assumes that it will run on single thread.

26
Q

What is dependency object

A

Any object which want to have dependency property must be derived from dependency object. It is because dependency object supports dependency property.

27
Q

What freezable class do

A

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
Q

What is visual class

A

It is directly derived from dependency object. It supports screen rendering.

29
Q

What is contentelement class

A

It is derived from dependency object. It is just like UI elements but for document related elements.

30
Q

What is framework element class

A

It is for support for UIelements e.g. styles, data binding

31
Q

What is FrameworkContentElement class

A

It is just like framework element but for non UI element

32
Q

What is control class

A

It is for restyling

33
Q

What is logical tree

A

A logical tree built on hierarchy of XAML elements. It is called logical because it misses many visual elements.

34
Q

What is visual tree

A

Its a mapping of hierarchy of XAML elements in a tree form. All elements are visually present in it.

35
Q

Should our code depend upon visual tree

A

No

36
Q

How can we print logical and visual tree

A

Through logical tree helper class and visual tree helper class