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
425
Problem with styling a XamDataGrid
posted
I want to prove some properties of XamDataGrid with default values. For this I've provided a simple style.

   <Style TargetType="{x:Type igDP:XamDataGrid}">
        <Setter Property="ScrollingMode" Value="Deferred" />
        <Setter Property="BorderBrush" Value="Gray" />
        <Setter Property="Background" Value="WhiteSmoke" />
        <Setter Property="BorderThickness" Value="1" />
    </Style>

This also works well as long as I'm in the Vistual Studio IDE.

however, after running the compiled assembly under Windows without using Visual Studio, comes a XamlParseException and the application crashes.

If I renounce this style and set the properties in code, my application works without problems



I think thas is a bug.