SplitContainer
WPF中的Windows窗体是否有标准和类似的东西?
我对网格有点失落,因为控件似乎不是在细胞内,而是在它们之上:s.
我做了一些谷歌搜索,但我不知道究竟在搜索领域写什么...
Jai*_*Oro 25
如何使一个样品水平SplitContainer
使用网格和GridSplitter像SnowBear说:
<Window x:Class="JobFinder1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="JobFinder1" Height="350" Width="525" AllowsTransparency="False">
<Grid Name="gridMain">
<Grid.RowDefinitions>
<RowDefinition Height="26" />
<RowDefinition />
<RowDefinition Height="1"/>
<RowDefinition />
</Grid.RowDefinitions>
<ToolBar Height="26" VerticalAlignment="Stretch" HorizontalAlignment="Left" />
<ListView Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
<GridSplitter Background="DarkGray" ResizeDirection="Rows" Grid.Row="2"
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
ResizeBehavior="PreviousAndNext" />
<ListView Grid.Row="3" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
</Grid>
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
16811 次 |
最近记录: |