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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:32:56+00:00 2026-05-13T15:32:56+00:00

I’m having a hard time even phrasing this question. I’m displaying preview images to

  • 0

I’m having a hard time even phrasing this question.

I’m displaying preview images to users in my UI within a ListBox. When a user hovers over the image, I’d like to expand it so the user can see more detail.

I’ve gotten to the point where I can “pop up” the image, but of course it is still within its normal position in the layout, meaning that rather than the image being displayed on top of the other controls near it, it only appears on top of the controls rendered before it and underneath those rendered after it. It is also being cropped by the bounds of the ListBox.

Is there a simple (i.e., no custom control development) way to, temporarily, remove that image from the visual layout and put it above all other elements?

Here’s a crappy demo app that shows what I’m talking about:

Description of the issue

Notice the zoomed image is clipped by the bounds of the ListBox (outside of the list box is red). Also, notice that UI elements rendered after the zoomed image overlay it still–both icons that come later and item names (“Item 5” and others seen in the lower left hand corner).

  • 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-13T15:32:56+00:00Added an answer on May 13, 2026 at 3:32 pm

    The solution which worked best for me was using the Popup primitive. It doesn’t provide much in the way of control when it comes to animation (it comes with stock animations) but you can animate its contents any which way you like.

    <Image
        Name="icon"
        Source="{Binding MaiImaeg}">
      <Image.Triggers>
        <EventTrigger
            RoutedEvent="Image.MouseEnter">
          <BeginStoryboard>
            <Storyboard>
              <DoubleAnimation
                  Storyboard.TargetName="tranny"
                  Storyboard.TargetProperty="ScaleX"
                  To="6"
                  Duration="0:0:1">
                <DoubleAnimation.EasingFunction>
                  <ElasticEase
                      Oscillations="1"
                      Springiness="8" />
                </DoubleAnimation.EasingFunction>
              </DoubleAnimation>
              <DoubleAnimation
                  Storyboard.TargetName="tranny"
                  Storyboard.TargetProperty="ScaleY"
                  To="6"
                  Duration="0:0:1">
                <DoubleAnimation.EasingFunction>
                  <ElasticEase
                      Oscillations="1"
                      Springiness="8" />
                </DoubleAnimation.EasingFunction>
              </DoubleAnimation>
            </Storyboard>
          </BeginStoryboard>
        </EventTrigger>
        <EventTrigger
            RoutedEvent="Image.MouseLeave">
          <BeginStoryboard>
            <Storyboard>
              <DoubleAnimation
                  Storyboard.TargetName="tranny"
                  Storyboard.TargetProperty="ScaleX"
                  To="0"
                  Duration="0:0:0" />
              <DoubleAnimation
                  Storyboard.TargetName="tranny"
                  Storyboard.TargetProperty="ScaleY"
                  To="0"
                  Duration="0:0:0" />
            </Storyboard>
          </BeginStoryboard>
        </EventTrigger>
      </Image.Triggers>
    </Image>
    <Popup
        Name="popup"
        IsOpen="{Binding IsMouseOver, ElementName=icon, Mode=OneWay}"
        PlacementTarget="{Binding ElementName=icon}"
        Placement="Left"
        Width="640"
        Height="640"
        StaysOpen="true"
        AllowsTransparency="True">
        <Image
           Width="48"
           Height="48"
           Source="{Binding MaiImaeg}">
           <Image.RenderTransform>
               <ScaleTransform
                    x:Name="tranny"
                    CenterX="48"
                    CenterY="24"
                    ScaleX="1"
                    ScaleY="1" />
            </Image.RenderTransform>
        </Image>
    </Popup>
    

    In this snippet, the popup is not open until IsMouseOver is true for its Image (named “icon”). When the mouse enters the image, two things happen. The Popup opens (at 640×640) and an image is shown (48px by 48px). This image has a scale transform on it. The “icon” Image also has a storyboard for MouseEnter and MouseLeave. This storyboard uses a double animation, targeted at the popup image’s ScaleTransform. This storyboard enlarges the image when the mouse enters and shrinks it when it leaves with a nice easing function.

    The use case would be: “User is presented a listbox with small images for each item in the list. When the user hovers over the small image (icon), it springs forward and enlarges, giving the user a better view of the image. When the mouse leaves the image, it shrinks back to its original size.”

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

Sidebar

Related Questions

No related questions found

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.