반응형
<Page
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<DockPanel LastChildFill="True">
<TextBlock DockPanel.Dock="Left" VerticalAlignment="Center">
I am the left...
</TextBlock>
<TextBlock DockPanel.Dock="Right" VerticalAlignment="Center">
I am the Right
</TextBlock>
<TextBlock DockPanel.Dock="Top" Background="LightCoral" >
I am the top...
</TextBlock>
<TextBlock DockPanel.Dock="Bottom" Background="LightCoral">
I am the bottom
</TextBlock>
<Button Height="40" Width="200">I am the Fill(of the center)</Button>
</DockPanel>
</Page>
<Page
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<DockPanel LastChildFill="True">
<TextBlock DockPanel.Dock="Top" Background="LightCoral" >
I am the top...
</TextBlock>
<TextBlock DockPanel.Dock="Bottom" Background="LightCoral">
I am the bottom
</TextBlock>
<TextBlock DockPanel.Dock="Left" VerticalAlignment="Center">
I am the left...
</TextBlock>
<TextBlock DockPanel.Dock="Right" VerticalAlignment="Center">
I am the Right
</TextBlock>
<Button Height="40" Width="200">I am the Fill(of the center)</Button>
</DockPanel>
</Page>
<Page
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<DockPanel LastChildFill="True">
<TextBlock DockPanel.Dock="Top" Background="LightCoral" >
I am the top...
</TextBlock>
<TextBlock DockPanel.Dock="Bottom" Background="LightCoral">
I am the bottom
</TextBlock>
<TextBlock DockPanel.Dock="Left" VerticalAlignment="Center">
I am the left...
</TextBlock>
<Button Height="40" Width="200">I am the Fill(of the center)</Button>
<TextBlock DockPanel.Dock="Right" VerticalAlignment="Center">
I am the Right
</TextBlock>
</DockPanel>
</Page>
- 출처 Programming .Net 3.5 by Jesse Liberty and Alex Horovitz. (소수 수정)
'.NET > WPF' 카테고리의 다른 글
WPF 기초 의존 프로퍼티와 첨부 프로퍼티 애니메이션, 동시 실행 애니메이션 (0) | 2009.07.17 |
---|---|
WPF 기초 엘리먼트 간의 포함 관계 Window.Resource 형태변형 (0) | 2009.07.16 |
WPF 기초 Resource, Linear Gradient , Style (0) | 2009.07.16 |
WPF 기초 <Viewbox><Canvas> <Path> (0) | 2009.07.15 |
WPF 기초 StackPanel 사용과 <FlowDocumentReader> <FlowDocument> <Paragraph> <Paragraph.FontFamily> <Paragraph.FontSize> <Bold> <LineBreak /> (0) | 2009.07.15 |
WPF 기초 <Grid.RowDefinitions> <RowDefinition> <Grid.ColumnDefinitions> <ColumnDefinition> (0) | 2009.07.15 |
WPF 에디터 (0) | 2009.07.13 |
WPF 관련 동영상 (0) | 2009.02.08 |