zoukankan      html  css  js  c++  java
  • devexpress LayoutControl控件里面的内边距的消除

    原始效果图如下:

    如何去掉红线部分的边距?

    答:

    padding margin 都不起作用

    需要使用如下方式:

        <Window.Resources>
            <Style x:Key="CustomGroupBoxStyle" TargetType="{x:Type dxlc:GroupBox}">
                <Setter Property="Padding" Value="0"/>
            </Style>
        </Window.Resources>
    <dxlc:LayoutControl Padding="0" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="1" Orientation="Vertical" HorizontalAlignment="Stretch"  x:Name="LayoutRoot">
                <dxlc:LayoutGroup VerticalAlignment="Stretch">
                    <dxlc:LayoutGroup Header="目录" GroupBoxStyle="{StaticResource CustomGroupBoxStyle}"  View="GroupBox" Width="220" VerticalAlignment="Stretch" dxlc:LayoutControl.AllowHorizontalSizing="True">
                        <UserControls:UC_FileManageLeftTree />
                    </dxlc:LayoutGroup>
                    <dxlc:LayoutGroup Header="列表" View="GroupBox" VerticalAlignment="Stretch" dxlc:LayoutControl.AllowHorizontalSizing="True">
                        <dxlc:LayoutItem Label="姓名">
                        </dxlc:LayoutItem>
                    </dxlc:LayoutGroup>
                </dxlc:LayoutGroup>
            </dxlc:LayoutControl>

    注意上面红色标注部分

  • 相关阅读:
    python中文编码
    Python习题纠错1
    Python中的变量
    Python之注释
    python初步学习
    java输入数据并排序
    五月最后一天
    @component注解
    多线程回顾
    赖床分子想改变--
  • 原文地址:https://www.cnblogs.com/wjx-blog/p/10903522.html
Copyright © 2011-2022 走看看