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>

    注意上面红色标注部分

  • 相关阅读:
    《JavaScript语言精粹》学习心得
    Linq笔记
    关于缓存
    JS-替换全部全部字符串
    相同数据用分号分割
    单例模式
    es6- ArrayBuffer
    vue常用属性解释。
    装饰者模式
    中介者模式
  • 原文地址:https://www.cnblogs.com/wjx-blog/p/10903522.html
Copyright © 2011-2022 走看看