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
605
wpf datagrid has blurry/faded text
posted

Hi, I'm a new user getting started with NetAdvantage 2010.2 for a wpf application.  The xamDataGrid that I'm using does not seem to be using black font for the text in the rows and column headers.  This gives it a faded and blurry kind of look, especially on the column headers.  This is a plain vanilla theme using the office2k7, no customization.  I searched around on this forum and google for some other data grid snapshots and found some which look fine.  I'm wondering how I can get the same look out of the box.  In the shot below, my app is on the right and I found a screenshot of someone elses app on the left.  Thanks.

igDP:XamDataGrid x:Name="auctionGrid" Theme="Office2k7Blue" DataSource="{Binding Source={StaticResource am}, Path =AuctionList}"/>

 

  • 69686
    posted

    Hello,

    The Label's foreground is a SolidColorBrush with key LabelForeground and you can use this to set it to black :

     

    <igDP:XamDataGrid BindToSampleData="True" Theme="Office2k7Blue">

                <igDP:XamDataGrid.Resources>

                    <SolidColorBrush x:Key="{ComponentResourceKey {x:Type igDP:XamDataGrid}, LabelForeground}" Color="Black" />

                </igDP:XamDataGrid.Resources>

            </igDP:XamDataGrid>

    Edit : The default for Office2kBlue is this :

                    <SolidColorBrush x:Key="{ComponentResourceKey {x:Type igDP:XamDataGrid}, LabelForeground}" Color="#FF27413E" />