troubleshooting Question

WPF Listview Gridview Selected Item Back color

Avatar of ALawrence007
ALawrence007 asked on
Microsoft DevelopmentVisual Basic.NET.NET Programming
4 Comments1 Solution4114 ViewsLast Modified:
Hi to all,

I have a WPF Listview Gridview where I am trying to set the selected Item to Transparent. I am having a lot of trouble doing that and can't seem to find the right answer online. Can someone please help me with this issue. I am also trying to do the same for the "mouse over" item.
Below is the XAML for my listview:

I am using Visual Studio 2008 and .Net 3.5. I am also using Microsoft Blend 3.

<filter:FilterSortListView x:Name="SearchListView" d:LayoutOverrides="Height" Grid.Row="1" 
                                   IsSynchronizedWithCurrentItem="True" Background="{x:Null}" 
                <Style TargetType="{x:Type ListBoxItem}">
                        <Trigger Property="IsSelected" Value="True">
                            <Setter Property="Foreground" Value="Red"/>
				<StaticResource ResourceKey="ListBoxBackGround"/>
                    <ScaleTransform ScaleX="1" ScaleY="1"/>
                    <SkewTransform AngleX="0" AngleY="0"/>
                    <RotateTransform Angle="0"/>
                    <TranslateTransform X="0" Y="0"/>
                <Style TargetType="{x:Type ListViewItem}"  >
                    <Setter Property="ToolTip" Value="{Binding Source={StaticResource memTooltip}}" />                    
				<GridView x:Name="InfoGrid" AllowsColumnReorder="False">
					<filter:SortListViewColumn Width="175"
                                               Header=" Ordered"
                                               HeaderContainerStyle="{DynamicResource FirstColumnGridViewColumnHeader}" 
                                               CellTemplate="{StaticResource ItemCodeImage}"/>
                    <filter:SortListViewColumn Width="75"
                                               Header=" Price"
                                               HeaderContainerStyle="{DynamicResource FamilyDataGridViewColumnHeader}" 
                                               CellTemplate="{StaticResource ItemPrice}"/>
                    <filter:SortListViewColumn Width="150"
                                               Header="Constituent Name"
                                               HeaderContainerStyle="{DynamicResource FamilyDataGridViewColumnHeader}" 
                                               CellTemplate="{StaticResource constituentName}"/>
Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros