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 90903
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T22:56:46+00:00 2026-05-10T22:56:46+00:00

I have a ListBox with a StackPanel that contains an image and label. <ListBox.ItemsPanel>

  • 0

I have a ListBox with a StackPanel that contains an image and label.

<ListBox.ItemsPanel>     <ItemsPanelTemplate>         <VirtualizingStackPanel Orientation='Horizontal' IsItemsHost='True' />     </ItemsPanelTemplate> </ListBox.ItemsPanel> <ListBox.ItemTemplate>     <DataTemplate>         <StackPanel Orientation='Vertical'>             <Image Source='{Binding Image}' Cursor='Hand' Tag='{Binding Link}' MouseLeftButtonDown='Image_MouseLeftButtonDown' ToolTip='Click to see this product on adidas.com' VerticalAlignment='Top' HorizontalAlignment='Left'  />             <Label Content='{Binding Name}' Cursor='Hand' Tag='{Binding Link}' MouseLeftButtonDown='Label_MouseLeftButtonDown' VerticalAlignment='Bottom' Foreground='White' Style='{StaticResource Gotham-Medium}' FontSize='8pt'  HorizontalAlignment='Center' />         </StackPanel>     </DataTemplate> </ListBox.ItemTemplate> 

I want to show a third image (glow.png) behind the currently moused over image. I can’t seem to add a second image to the stack panel, and set it’s visibility to hidden. I haven’t even tackled the mouseover part yet.

Is adding another image inside the stack panel, and then setting it’s visibility to visible the right approach on mouseenter, and then swapping back on mouseleave?

Thanks.

  • 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. 2026-05-10T22:56:47+00:00Added an answer on May 10, 2026 at 10:56 pm

    You certainly can have one image behind another. Instead of directly adding the image to your StackPanel, add a Grid and then add both images, like this:

    <StackPanel Orientation='Vertical'>     <Grid>         <Image Source='...' />         <Image Source='{Binding Image}' ... />     </Grid>     <Label Content='{Binding Name}' ... /> </StackPanel> 

    You might also like to look into Bitmap Effects, using which you can introduce a ‘glow’ effect onto any WPF element.

    Edit: Another way to achieve the effect you want (I believe) is to swap out the image’s Source property in a trigger. I’m not going to try to write the XAML from memory here, but you could catch the IsMouseOver property for the image itself, and when it switches to True you could set its Source to the ‘glowing’ version of the image.

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

Sidebar

Ask A Question

Stats

  • Questions 99k
  • Answers 99k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Anything in the files and groups list that turns red… May 11, 2026 at 7:47 pm
  • Editorial Team
    Editorial Team added an answer See chmod(2), e.g. http://www.manpagez.com/man/2/chmod/osx-10.4.php (I think it's unchanged in 10.5). May 11, 2026 at 7:47 pm
  • Editorial Team
    Editorial Team added an answer Did you figure this out already? What I did to… May 11, 2026 at 7:47 pm

Related Questions

I have a listbox where the items contain checkboxes: <ListBox Style={StaticResource CheckBoxListStyle} Name=EditListBox> <ListBox.ItemTemplate>
In the example below I have a ListBox with dozens of font names in
I have a simple .Net enum. I also have a view model object which
I have a WPF window, with multiple ListBox controls on it, all sharing the

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.