Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
165
IsEnabled=false makes internal cell controls visible
posted

Hi,

when I set grid.IsEnabled = false the borders around text boxes in cells become visible which doesn't look great.

Any ideas how to fix it? I need grid to be grayed out and nothing else.

Parents
No Data
Reply
  • 69686
    posted

    Hello,

    For the solution of this problem I used very handy tool - Snoop, which helps you see the visual tree of the grid. By creating a style, targeting the xamTextEditor you can set the BorderThickness property to 0 and remove the gray borders around the text boxes. You can see the default xamTextEditor template in your "~\Infragistics\NetAdvantage for WPF 2008 Vol. 2\DefaultStyles\Editors" folder.

     Here is the style that I used:

    <Style TargetType="{x:Type igEditors:XamTextEditor}">
                    <Setter Property="BorderThickness" Value="0" />
    </Style>

Children
No Data