WPF GridSplitter上下左右拖动


<Window x:Class="testGridSplitter.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">
<Grid>
<Grid.RowDefinitions >
<RowDefinition Height="60" MinHeight="60"/>
<RowDefinition MinHeight="60"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100" MinWidth="60" MaxWidth="400"/>
<ColumnDefinition MinWidth="60"/>
</Grid.ColumnDefinitions>

     <GridSplitter Width="5" Grid.Row="0" Grid.RowSpan="2" Grid.Column="0" Background="Gray"  HorizontalAlignment="Right"/>
     <GridSplitter Height="5" Grid.Row="0" Grid.Column="1" Background="Gray" HorizontalAlignment="Stretch" VerticalAlignment="Bottom"/>

</Grid>
</Window>


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM