Presentation is loading. Please wait.

Presentation is loading. Please wait.

Using standard controls gets you a long way.

Similar presentations


Presentation on theme: "Using standard controls gets you a long way."— Presentation transcript:

1

2

3

4

5 Using standard controls gets you a long way

6 Windows XAML layout controls Grid Stack Panel Canvas Scroll Viewer BorderView BoxWrap Grid Relative Panel

7

8

9

10 Rows/columns – 3 types of sizing: star sizing proportional: 1*/3* = 25%/75% auto sizing sized to content content can also have Max/Min widths and heights as limits pixel sizing hard-coded size – avoid in most situations auto 1* 2* auto 1* 4* 7*

11 Grid auto 1* 400 711 600 1067

12

13

14

15 Relative Panel is a XAML layout control. It arranges children by declaring relationships between them. Introducing the Relative Panel Windows XAML layout controls Grid Stack Panel Canvas Scroll Viewer BorderView BoxWrap Grid Relative Panel

16

17 Align with panel <Rectangle x:Name="RedRect" Height="100" Width="100" Fill="Red" RelativePanel.AlignHorizontalCenterWithPanel="True" RelativePanel.AlignVerticalCenterWithPanel="True" /> <Rectangle x:Name="RedRect" Height="100" Width="100" Fill="Red" RelativePanel.AlignHorizontalCenterWithPanel="True" RelativePanel.AlignVerticalCenterWithPanel="True" />

18 Align with sibling (below, center) <Rectangle x:Name="RedRect" Height="100" Width="100" Fill="Red" RelativePanel.Below="BlueRect" RelativePanel.AlignHorizontalCenterWith="BlueRect" /> <Rectangle x:Name="RedRect" Height="100" Width="100" Fill="Red" RelativePanel.Below="BlueRect" RelativePanel.AlignHorizontalCenterWith="BlueRect" />

19

20 IsPaneOpen="True" IsPaneOpen="False" DisplayMode= "Inline" DisplayMode= "Overlay" DisplayMode= "CompactInline" DisplayMode= "CompactOverlay"

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42


Download ppt "Using standard controls gets you a long way."

Similar presentations


Ads by Google