012. Tab Control - TabStripPlacement
반응형

탭컨트롤이다..

 

뭐 별거없는 탭컨트롤... 그냥 크롬의 탭을 생각해도되고... 오피스의 탭을 생각해도 되고...

 

TabStripPlacement는 단순히 탭을 어느위치에 둘것인지 이다.

 

왼쪽/오른쪽/위/아래 4가지가 존재...

 

이건 굳이 코드까지 적힐필요도 없지만.........

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
 
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition/>
        </Grid.RowDefinitions>
 
        <Grid Grid.Column="0" Grid.Row="0">
            <TabControl
                    TabStripPlacement="Left"
                    Margin="10">
                <TabItem Header="1"/>
                <TabItem Header="2"/>
            </TabControl>
        </Grid>
 
        <Grid Grid.Column="1" Grid.Row="0">
            <TabControl
                    TabStripPlacement="Top"
                    Margin="10">
                <TabItem Header="1"/>
                <TabItem Header="2"/>
            </TabControl>
        </Grid>
 
        <Grid Grid.Column="0" Grid.Row="1">
            <TabControl
                    TabStripPlacement="Right"
                    Margin="10">
                <TabItem Header="1"/>
                <TabItem Header="2"/>
            </TabControl>
        </Grid>
 
        <Grid Grid.Column="1" Grid.Row="1">
            <TabControl
                    TabStripPlacement="Bottom"
                    Margin="10">
                <TabItem Header="1"/>
                <TabItem Header="2"/>
            </TabControl>
        </Grid>
    </Grid>
cs

 

 

뭐 없다....

 

코드도 제외!

반응형