List Items are gray until mouse hover

5 posts, 0 answers
  1. Chris Rusu
    Chris Rusu avatar
    3 posts
    Member since:
    Nov 2004

    Posted 21 Feb 2012 Link to this post

    When binding the RadListBox, the list items have a gray foreground color on load. It is only until I mouse over each item that they turn to black. After the mouse over it is working fine.

    My Listbox is:
    <telerik:RadListBox x:Name="lb1" Width="116" HorizontalAlignment="Left" IsEnabled="True" telerik:StyleManager.Theme="Windows7" ItemsSource="{Binding}">
                   <telerik:RadListBox.ItemTemplate>
                       <StaticResource ResourceKey="Template1"/>
                   </telerik:RadListBox.ItemTemplate>
               </telerik:RadListBox>

    DataTemplate:
    <Grid.Resources>
                    <DataTemplate x:Key="Template1">
                        <WrapPanel>
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="20"/>
                                </Grid.RowDefinitions>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="*"/>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <TextBlock Grid.Column="0" Text="{Binding Path=A1}"/>
                                <TextBlock Grid.Column="1" Text="{Binding Path=B1}" Margin="4,0,0,0"/>
                            </Grid>
                        </WrapPanel>
                    </DataTemplate>
                </Grid.Resources>

  2. George
    Admin
    George avatar
    1332 posts

    Posted 24 Feb 2012 Link to this post

    Hello,

    We tried to reproduce the problem on our side, but to no avail. Could you refer to the attached sample and video demo and let us know if we missed something?


    Kind regards,
    George
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. David Hatfield
    David Hatfield avatar
    3 posts
    Member since:
    Jan 2006

    Posted 27 Feb 2012 Link to this post

    Hello,

    Wrap the grid in your example with a RadBusyIndicator and you should see the effect.  I am seeing the same behavior with some of my context menus.

    Thanks.

    David
  5. Chris Rusu
    Chris Rusu avatar
    3 posts
    Member since:
    Nov 2004

    Posted 27 Feb 2012 Link to this post

    David is right. I forgot to mention I had a RadBusyIndicator. This indeed is what's causing the issue.
    I had to put the ListBox outside and before the RadBusyIndicator to make it work,

    <Grid>
            <telerik:RadListBox ...  />
    <telerik:RadBusyIndicator...
    </Grid>
  6. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 02 Mar 2012 Link to this post

    Hi,

    Thank you for the clarification, we managed to reproduce the bad behavior. It seems to be a bug with RadBusyIndicator. I have logged it in our PITS and you can follow its progress here.

    Please, excuse us for the inconvenience. We have added points to your account for the report. Don't hesitate to contact us if you have other questions.


    Greetings,
    Boyan
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top
UI for WPF is Visual Studio 2017 Ready