일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- GitHub
- CNN
- SciPy
- index
- LSTM
- mean
- javascript
- synology
- Button
- Splunk
- Lotto
- install
- mariadb
- GT-S80
- keras
- imread
- 알고리즘
- Numpy
- Python
- RNN
- pip
- ipad
- SPL
- pandas
- pycharm
- 삼성소프트웨어멤버십
- dataframe
- E-P1
- DFS
- Series
Archives
- Today
- Total
잠토의 잠망경
[Grid] shared size group(Manual Grid 생성) 본문
Programming in WPF page: 122
<Window x :Class="WpfApplication28.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height ="350" Width="525">
<ScrollViewer>
<Grid>
<Grid.Resources>
<Style TargetType ="TextBlock">
<Setter Property ="Margin" Value="5,3"/>
</Style>
</Grid.Resources>
<Grid.ColumnDefinitions>
<ColumnDefinition Width ="*"/>
<ColumnDefinition Width ="Auto"/>
<ColumnDefinition Width ="Auto"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height ="Auto"/>
<RowDefinition Height ="Auto"/>
<RowDefinition Height ="Auto"/>
</Grid.RowDefinitions>
<Border Grid.Column ="0" Grid.Row="0"
Background="LightGray"
BorderBrush="Gray"
BorderThickness="1">
<TextBlock> title</ TextBlock>
</Border>
<Border Grid.Column ="1" Grid.Row="0"
Background="LightGray"
BorderBrush="Gray"
BorderThickness="1">
<TextBlock> Location</ TextBlock>
</Border>
<Border Grid.Column ="2" Grid.Row="0"
Background="LightGray"
BorderBrush="Gray"
BorderThickness="1">
<TextBlock> Rank</ TextBlock>
</Border>
<TextBlock Grid.Column ="0" Grid.Row="1" Text="Programming WPF"/>
<TextBlock Grid.Column ="1" Grid.Row="1" Text="1111"/>
<TextBlock Grid.Column ="2" Grid.Row="1" Text="1"/>
<TextBlock Grid.Column ="0" Grid.Row="2" Text="PTap"/>
<TextBlock Grid.Column ="1" Grid.Row="2" Text="222"/>
<TextBlock Grid.Column ="2" Grid.Row="2" Text="2"/>
</Grid>
</ScrollViewer>
</Window> |
<Window x :Class="WpfApplication28.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height ="350" Width="525">
<DockPanel Grid.IsSharedSizeScope="True">
<DockPanel.Resources>
<Style TargetType ="TextBlock">
<Setter Property ="Margin" Value="5,3"/>
</Style>
</DockPanel.Resources>
<Grid DockPanel.Dock ="Top">
<Grid.ColumnDefinitions>
<ColumnDefinition Width ="*"/>
<ColumnDefinition Width ="Auto" SharedSizeGroup="Location"/>
<ColumnDefinition Width ="Auto" SharedSizeGroup="Rank"/>
<ColumnDefinition Width ="Auto"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height ="Auto"/>
</Grid.RowDefinitions>
<Border Grid.Column ="0" Grid.Row="0"
Background="LightGray"
BorderBrush="Gray"
BorderThickness="1">
<TextBlock> title</ TextBlock>
</Border>
<Border Grid.Column ="1" Grid.Row="0"
Background="LightGray"
BorderBrush="Gray"
BorderThickness="1">
<TextBlock> Location</ TextBlock>
</Border>
<Border Grid.Column ="2" Grid.Row="0"
Grid.ColumnSpan="2"
Background="LightGray"
BorderBrush="Gray"
BorderThickness="1">
</Border>
<TextBlock Grid.Column ="2" Grid.Row="0"> Rank</ TextBlock>
<FrameworkElement Grid.Column ="3"
Width="{DynamicResource {x: Static SystemParameters.VerticalScrollBarWidthKey}}"/>
</Grid>
<ScrollViewer>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width ="*"/>
<ColumnDefinition Width ="Auto" SharedSizeGroup="Location"/>
<ColumnDefinition Width ="Auto" SharedSizeGroup="Rank"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height ="Auto"/>
<RowDefinition Height ="Auto"/>
</Grid.RowDefinitions>
<TextBlock Grid.Column ="0" Grid.Row="0" Text="Programming WPF"/>
<TextBlock Grid.Column ="1" Grid.Row="0" Text="1111"/>
<TextBlock Grid.Column ="2" Grid.Row="0" Text="1"/>
<TextBlock Grid.Column ="0" Grid.Row="1" Text="PTap"/>
<TextBlock Grid.Column ="1" Grid.Row="1" Text="222"/>
<TextBlock Grid.Column ="2" Grid.Row="1" Text="2"/>
</Grid>
</ScrollViewer>
</DockPanel >
</Window> |
Comments