Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6004819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:19:00+00:00 2026-05-23T01:19:00+00:00

XAML <ListView Name=Panel Width=Auto Margin=0,200,0,0 HorizontalAlignment=Stretch VerticalAlignment=Stretch Background={x:Null} BorderThickness=0 ItemsSource={Binding Source={x:Static Communicator:Profile.AvailableFriends}} MouseDoubleClick=Panel_MouseDoubleClick ScrollViewer.HorizontalScrollBarVisibility=Disabled

  • 0

XAML

    <ListView Name="Panel"
              Width="Auto"
              Margin="0,200,0,0"
              HorizontalAlignment="Stretch"
              VerticalAlignment="Stretch"
              Background="{x:Null}"
              BorderThickness="0"
              ItemsSource="{Binding Source={x:Static Communicator:Profile.AvailableFriends}}"
              MouseDoubleClick="Panel_MouseDoubleClick"
              ScrollViewer.HorizontalScrollBarVisibility="Disabled"
              SelectionMode="Single">
        <ListView.ItemsPanel>
            <ItemsPanelTemplate>
                <WrapPanel Orientation="Horizontal" />
            </ItemsPanelTemplate>
        </ListView.ItemsPanel>
        <ListView.View>
            <GridView ColumnHeaderContainerStyle="{StaticResource HiddenStyle}">
                <GridViewColumn Width="Auto">
                    <GridViewColumn.CellTemplate>
                        <DataTemplate>
                            <Border Canvas.Left="55"
                                    Canvas.Top="30"
                                    Width="50"
                                    Height="50"
                                    Margin="0,5"
                                    BorderBrush="#FF3E5998"
                                    BorderThickness=".25"
                                    CornerRadius="9">
                                <Border.Effect>
                                    <DropShadowEffect BlurRadius="5"
                                                      Opacity=".5"
                                                      ShadowDepth="3" />
                                </Border.Effect>
                                <Border BorderBrush="{Binding Color}"
                                        BorderThickness="3"
                                        CornerRadius="7.5">
                                    <Border BorderBrush="#FF3B5998"
                                            BorderThickness=".25"
                                            CornerRadius="6.5">
                                        <Border.Background>
                                            <ImageBrush ImageSource="{Binding Picture}" />
                                        </Border.Background>
                                    </Border>
                                </Border>
                            </Border>
                        </DataTemplate>
                    </GridViewColumn.CellTemplate>
                </GridViewColumn>
                <GridViewColumn Width="Auto">
                    <GridViewColumn.CellTemplate>
                        <DataTemplate>
                            <Label Content="{Binding Name}" />
                        </DataTemplate>
                    </GridViewColumn.CellTemplate>
                </GridViewColumn>
            </GridView>
        </ListView.View>
    </ListView>


How To :

1 – Change Highlight Color for Mouse-Hover Item
2 – Change Highlight Color for Selected Item
3 – Change Highlight Color for Losed-Focus-Selected Item

Note :

I tried alot to change colors but GRIDVIEW always forces its own :S

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T01:19:00+00:00Added an answer on May 23, 2026 at 1:19 am

    You need to change ListViewItem template.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have this XAML Code: <ListView x:Name=listFeedSearch Margin=-548.856,95.333,0,7.667 HorizontalAlignment=Left Width=542.5 RenderTransformOrigin=0.5,0.5 ItemsSource={Binding SearchCollection}>
This is the xaml of listview <ListView Grid.Column=1 Height=auto Name=ListView1 Width=auto AllowDrop =True >
i am doing this xaml : <StackPanel Margin=320,0,0,0 Grid.RowSpan=2> <ListView ItemsSource={Binding employeeCollection}> <ListView.View> <GridView>
Here's a part of XAML of the application I'm working on: <ListView Name=lsvCustomerDetails ItemsSource={Binding
The following xaml code produces a ListView with three columns. The ListView ItemsSource is
I am following MVVM Pattern and I want to bind ListView ItemsSource using XAML,
How do I access the listviews panel in code behind? Xaml definition: <ListView.ItemsPanel> <ItemsPanelTemplate>
In XAML I have a ScrollView and a ListView inside. <ScrollViewer Margin=0, 0, 0,
I've got a WPF ListView/GridView spec'd in XAML. The first column uses a CellTemplate
I have a ListView, that is defined very simply in my XAML like so

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.