WEB开发网
开发学院图形图像Flash Silverlight(4) - 2.0控件之DataGrid, DatePicker... 阅读

Silverlight(4) - 2.0控件之DataGrid, DatePicker, Grid, GridSplitter, HyperlinkButton, Image

 2008-11-14 11:50:51 来源:WEB开发网   
核心提示: 4、GridSplitter.xaml<UserControl x:Class="Silverlight20.Control.GridSplitter"xmlns="http://schemas.microsoft.com/winfx/2006/xaml

4、GridSplitter.xaml

<UserControl x:Class="Silverlight20.Control.GridSplitter"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:basics="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls">
  <Grid x:Name="LayoutRoot" Background="White">
    
    <Grid.RowDefinitions>
      <RowDefinition Height="100" />
      <RowDefinition Height="5" />
      <RowDefinition Height="100" />
    </Grid.RowDefinitions>
    
    <Grid.ColumnDefinitions>
      <ColumnDefinition Width="100" />
      <ColumnDefinition Width="5" />
      <ColumnDefinition Width="100" />
    </Grid.ColumnDefinitions>
    
    <Rectangle Grid.Row="0" Grid.Column="0" Fill="Red"/>
    <Rectangle Grid.Row="0" Grid.Column="2" Fill="Green" />
    <Rectangle Grid.Row="2" Grid.Column="0" Fill="Blue" />
    <Rectangle Grid.Row="2" Grid.Column="2" Fill="Yellow" />
    
    <!--
    ShowsPreview - 拖动 GridSplitter 时,是要即时显示拖动结果(false 默认值),还是要先预览GridSplitter被拖动的位置(true)
    -->
    <basics:GridSplitter Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3" ShowsPreview="True" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
    <basics:GridSplitter Grid.Row="0" Grid.Column="1" Grid.RowSpan="3" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
    
  </Grid>
</UserControl>

上一页  1 2 3 4 5  下一页

Tags:Silverlight 控件 DataGrid

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接