WPF的BulletDecorator 对齐控件
2012-02-01 00:27
357 查看
<Window x:Class="WPFBulletDecorator.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Background="Transparent" WindowStyle="None" AllowsTransparency="True" Width="525" > <Grid Background="Transparent"> <Grid.ColumnDefinitions> <ColumnDefinition Width="100" /> <ColumnDefinition /> </Grid.ColumnDefinitions> <!--<Button Height="50" Width="70" /> <Grid Background="Black" Grid.Column="1" />--> <WrapPanel> <BulletDecorator Height="25" VerticalAlignment="Top" Margin="5 10 0 0"> <BulletDecorator.Bullet> <Label>姓名:</Label> </BulletDecorator.Bullet> <TextBox Width="100" TextWrapping="Wrap"></TextBox> </BulletDecorator> <BulletDecorator Height="25" VerticalAlignment="Top" Margin="5 10 0 10"> <BulletDecorator.Bullet> <Label>年龄:</Label> </BulletDecorator.Bullet> <TextBox Width="100"></TextBox> </BulletDecorator> <BulletDecorator Margin="5 10 0 0"> <BulletDecorator.Bullet> <CheckBox IsChecked="True"></CheckBox> </BulletDecorator.Bullet> <TextBlock Width="100" Foreground="Red">在CheckBox之后</TextBlock> </BulletDecorator> <BulletDecorator Margin="5,10,0,0"> <BulletDecorator.Bullet> <RadioButton/> </BulletDecorator.Bullet> <TextBlock Width="100" TextWrapping="Wrap" HorizontalAlignment="Left" Foreground ="Blue" Margin="5,0,0,0"> 在Radio后 </TextBlock> </BulletDecorator> </WrapPanel> </Grid> </Window>
可以 对齐控件的...调整
BulletDecorator 的属性 子控件跟着调整
相关文章推荐
- 继续聊WPF——BulletDecorator控件
- 继续聊WPF——BulletDecorator控件
- 继续聊WPF——BulletDecorator控件
- Dev 控件DevExpress.Wpf.Grid.InfiniteGridSizeException
- WPF自定义控件——使用Win32控件
- 直接调用带参数方法创建新线程及 wpf中跨线程访问控件
- WPF下可编辑Header的Tab控件实现
- android控件的对齐方式(转)
- WPF布局之让你的控件随着窗口等比放大缩小 适应多分辨率满屏填充应用
- 使用linearlayout时控件左右对齐的问题
- WPF从我炫系列4---装饰控件的用法
- WPF控件颜色
- WPF 控件开发之 IAddChild
- WPF控件应用[2]
- WPF中不规则窗体与WebBrowser控件的兼容问题解决办法
- WPF:理解ContentControl——动态添加控件和查找控件
- WPF设置动画在控件载入时就立刻执行
- wpf中手风琴控件Accordion编辑模板后控件不正常。
- WPf 带滚动条WrapPanel 自动换行 和控件右键菜单
- WPF实现控件拖动