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
715
11.2 to 14.2 - Style no longer works
posted

Hi,

We upgraded from 11.2 to 14.2 recently.  We have a xamDataGrid where there are some columns that are added dynamically in the code behind.  In 11.2, I needed to add the follow style in order to add padding and ellipsis to the cell (see works.jpg):

<Style TargetType="{x:Type editors:XamTextEditor}">
     <Setter Property="Padding" Value="4,0,4,0"/>
</Style>
<Style TargetType="{x:Type igEditors:XamTextEditor}">
        <Style.Resources>
            <Style TargetType="{x:Type igWindows:SimpleTextBlock}">
                <Setter Property="TextTrimming" Value="CharacterEllipsis"/>
                <Setter Property="ToolTip" Value="{Binding Path=Value, RelativeSource={RelativeSource AncestorType=igEditors:XamTextEditor}}"/>
            </Style>
        </Style.Resources>
    </Style>
After upgrading to 14.2, the padding and ellipsis is no longer there (see broken.jpg).  Any idea what I need to do to fix it?
Thanks,
Harold