扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
System.Windows.Controls.Canvas (画布) System.Windows.Controls.DockPanel (停靠布局) System.Windows.Controls.Grid (表格) System.Windows.Controls.StackPanel (堆栈布局) System.Windows.Controls.VirtualizingPanel (虚堆栈布局) System.Windows.Controls.WrapPanel (覆盖布局) |
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="HongjunGuo.SurveySystem.Client.QuestionnaireList" Title="调查列表" Height="300" Width="500"> <Grid > <Grid.ColumnDefinitions> <ColumnDefinition Width="150"/> <ColumnDefinition Width="5" /> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="35"/> <RowDefinition Height="*"/> <RowDefinition Height="35"/> </Grid.RowDefinitions> <DockPanel Height="30" Name="dockPanel2" Grid.ColumnSpan="3" Grid.Row="0"> <Label>显示多少条目:</Label> <ComboBox Height="21" Name="comboBox1" Width="120" > <ComboBoxItem IsSelected="True" >5</ComboBoxItem> <ComboBoxItem>10</ComboBoxItem> <ComboBoxItem>20</ComboBoxItem> <ComboBoxItem>50</ComboBoxItem> </ComboBox> <Button Height="23" Name="button1" Width="75">刷新</Button> </DockPanel> <ListBox IsSynchronizedWithCurrentItem="True" Name="lb_Type" Width="Auto" Grid.Column="0" Grid.Row="1" > <ListBoxItem Name="lbi_Draft" ToolTip="最近使用的,并且没有被发布的调查表" Content="本地未发布的调查表草稿" Height="50" IsSelected="True"/> <ListBoxItem Name="lbi_Release" Content="本地最近发布的调查表" Height="50"/> <ListBoxItem Name="lbi_Seatch" Content="服务器上的调查列表" Height="50"/> </ListBox> <GridSplitter Grid.Column="1" Grid.Row="1" HorizontalAlignment="Left" Name="gridSplitter1" Width="10" /> <ListView Name="lv_Data" IsSynchronizedWithCurrentItem="True" Grid.Column="3" Grid.Row="1"> <ListView.View> <GridView> <GridViewColumn Header="编号"> </GridViewColumn> <GridViewColumn Header="标题"> </GridViewColumn> <GridViewColumn Header="创建时间"> </GridViewColumn> </GridView> </ListView.View> </ListView> <DockPanel Height="30" Name="dockPanel4" Grid.ColumnSpan="3" Grid.Row="2"> <Button Height="23" Name="btn_OK" Width="75" IsDefault="True" Click="btn_OK_Click">确 定</Button> <Button Height="23" Name="btn_Cancel" Width="75" IsCancel="True">取 消</Button> </DockPanel> </Grid> </Window> |
<Grid > <Grid.ColumnDefinitions> <ColumnDefinition Width="150"/> <ColumnDefinition Width="5" /> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="35"/> <RowDefinition Height="*"/> <RowDefinition Height="35"/> </Grid.RowDefinitions> |
<Window x:Class="WpfApplication1.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="300" Width="300"> <Grid > <Grid.ColumnDefinitions> <ColumnDefinition Width="30"/> <ColumnDefinition Width="auto" /> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="2*" /> <RowDefinition Height="*" /> </Grid.RowDefinitions> <Label Grid.Column="0" Grid.Row="0" Background="RosyBrown" ></Label> <Label Grid.Column="1" Grid.Row="0" Background="SkyBlue" >1234567890</Label> <Label Grid.Column="2" Grid.Row="0" Background="Red" ></Label> <Label Grid.Column="0" Grid.Row="1" Background="SpringGreen" ></Label> <Label Grid.Column="1" Grid.Row="1" Background="RoyalBlue" >abc</Label> <Label Grid.Column="2" Grid.Row="1" Background="Violet" ></Label> </Grid> </Window> |
|
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者