728x90
TabControl 컨트롤은 하나의 폼에 여러가지의 기능을 부여할 수 있는 컨트롤입니다
<Window x:Class="wpf08.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="450
" Width="600">
<Grid>
<TabControl TabStripPlacement="Top" >
<TabItem Name="tablitemContent" Header="TabItem widh Buttons">
<StackPanel>
<Button Content="_OK" />
<Button Content="_Cancel"/>
</StackPanel>
</TabItem>
<TabItem Name="backgroundcolor" Header="Background">
<TabItem.Content>
Background property information gose here.
</TabItem.Content>
</TabItem>
<TabItem Name="foregroundcolor" Header="Foreground">
<TabItem.Content>
Foreground property information gose here.
</TabItem.Content>
</TabItem>
<TabItem Name="bordercolor" Header="BorderColor">
<TabItem.Content>
Border color property information gose here.
</TabItem.Content>
</TabItem>
</TabControl>
</Grid>
</Window>
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="450
" Width="600">
<Grid>
<TabControl TabStripPlacement="Top" >
<TabItem Name="tablitemContent" Header="TabItem widh Buttons">
<StackPanel>
<Button Content="_OK" />
<Button Content="_Cancel"/>
</StackPanel>
</TabItem>
<TabItem Name="backgroundcolor" Header="Background">
<TabItem.Content>
Background property information gose here.
</TabItem.Content>
</TabItem>
<TabItem Name="foregroundcolor" Header="Foreground">
<TabItem.Content>
Foreground property information gose here.
</TabItem.Content>
</TabItem>
<TabItem Name="bordercolor" Header="BorderColor">
<TabItem.Content>
Border color property information gose here.
</TabItem.Content>
</TabItem>
</TabControl>
</Grid>
</Window>
TabStripPlacement속성은 텝의 위치입니다. 현재는 Top로 되어있으므로 텝이 상단에 위치하고 있습니다. Top 외에 Left, Right, Bottom 등의 속성값을 지정할 수 있습니다.
※ 테스트 환경
-----------------------------------------------------------------------------------------
운영체체 : Windows Vista Ultimate 32bit
개발툴 : Microsoft Visual C# Codename "Orcas"
-----------------------------------------------------------------------------------------
'.NET WPF' 카테고리의 다른 글
[Controls] 12. ListBox (0) | 2006.12.22 |
---|---|
[Controls] 11. PasswordBox (0) | 2006.12.22 |
[Controls] 9. ProgressBar (0) | 2006.12.22 |
[Controls] 7. ContextMenus (6) | 2006.12.22 |
[Controls] 6. ComboBox (0) | 2006.12.22 |
[Controls] 5. CheckBox (0) | 2006.12.22 |
[Controls] 4. Button (0) | 2006.12.22 |
댓글