Chapter 17 Flashcards

1
Q

How to add a new property in dependency property

A

Through RegisterAttached method

e.g. we can set Fontsize property to an element

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

What is sealed class

A

When we use seal keyword with any class then we can not inherit any thing from that class.

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

Can we put additional data with sealed class object and if yes then how

A

Yes. Using Dependency Property with its get and set method.

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

How can we save arbitrary data

A

Using tagproperty method

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

What is panel

A

They are used only for layout of elements

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

What 2 things tells the position of an element

A
  1. Element itself

2. Its parent

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

What are 3 factors of layout

A
  1. Size
  2. Position
  3. Transform
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the default value for min height and min width

A

0 Or infinity

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

What happen when we give NaN to size property of a element

A

Not a number. Then element size adjust according to its parent.

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

What is replacement of NaN in XAML

A

auto

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

What is the difference between margin and padding

A

Margin is the space outside the border of an element, while Padding is the space that is inside the border of it.

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

What is logical pixel and physical pixel

A

physical pixels are the actual number of pixels a device has. and logical is its opposite. Logical makes device independent.

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

What are 3 values for visibility property

A
  • Visible
  • Hidden
  • Collapse (Participate in layout but not visible on screen)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are 2 types of alignment

A
  1. Vertical alignment

2. Horizontal alignment (left, right, center, stretch)

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

What flowdirection do

A

Set language flow direction (left to right, right to left)

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

What are transforms

A

They are such operation which can effect size and position (e.g. rotation, scaling)

17
Q

What are 2 types of transform

A
  1. Layout transform

2. Render transform

18
Q

What is layout transform

A

Layout transform invokes before layout

19
Q

What is render transform

A

Render transform invokes after layout (Elements can overlap each other in it)

20
Q

There is origin property in transform. In which type it used, layout or render

A

render transform